File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ Package: bSims
22Type: Package
33Title: Agent-Based Bird Point Count Simulator
44Version: 0.3-4
5- Date: 2025-08-12
5+ Date: 2025-08-31
66Authors@R:
77 c(person(given = "Peter",
88 family = "Solymos",
Original file line number Diff line number Diff line change @@ -184,23 +184,23 @@ nc <- 2 # number of cores
184184# # sequential
185185system.time(bb <- b $ replicate(B , cl = NULL ))
186186# > user system elapsed
187- # > 0.235 0.002 0.237
187+ # > 0.237 0.002 0.239
188188
189189# # parallel clusters
190190cl <- makeCluster(nc )
191191# # note: loading the package is optional
192192system.time(clusterEvalQ(cl , library(bSims )))
193193# > user system elapsed
194- # > 0.000 0.000 0.444
194+ # > 0.001 0.000 0.442
195195system.time(bb <- b $ replicate(B , cl = cl ))
196196# > user system elapsed
197- # > 0.004 0.001 0.189
197+ # > 0.003 0.001 0.196
198198stopCluster(cl )
199199
200200# # parallel forking
201201if (.Platform $ OS.type != " windows" ) {
202202 system.time(bb <- b $ replicate(B , cl = nc ))
203203}
204204# > user system elapsed
205- # > 0.127 0.048 0.177
205+ # > 0.129 0.044 0.183
206206```
Original file line number Diff line number Diff line change @@ -16,3 +16,44 @@ devtools::check()
1616# install
1717devtools :: install()
1818
19+
20+ # Use R-universe for package checks - works with master
21+ library(jsonlite )
22+ pkgnews <- function (x ) {
23+ x <- x [x != " " ]
24+ h <- which(startsWith(x , " #" ))
25+ i <- (h [1 ]+ 1 ): (h [2 ]- 1 )
26+ paste0(x [i ], collapse = " \n " )
27+ }
28+
29+ pkg <- " bSims"
30+
31+ j <- fromJSON(paste0(" https://psolymos.r-universe.dev/api/packages/" , pkg ))
32+ checks <- j [[" _jobs" ]]
33+ platforms <- checks $ config [! startsWith(checks $ config , " wasm" )]
34+ news_text <- readLines(gsub(" README" , " NEWS" , j [[" _readme" ]]))
35+ # chlog <- readLines(gsub("README\\.md", "inst/ChangeLog", j[["_readme"]]))
36+
37+ cat(sprintf(' Dear CRAN Maintainers,
38+
39+ I am submitting the %s version of the %s R extension package to CRAN.
40+
41+ The package passed R CMD check --as-cran without errors/warnings/notes on the following platforms: %s.
42+
43+ I made the following changes since the last release:
44+
45+ %s
46+
47+ Yours,
48+
49+ Peter Solymos
50+ maintainer' ,
51+ j $ Version ,
52+ pkg ,
53+ paste0(platforms , collapse = " , " ),
54+ # ""))
55+ pkgnews(news_text )))
56+
57+ checks
58+
59+ devtools :: build()
You can’t perform that action at this time.
0 commit comments