Skip to content

Commit 5f37342

Browse files
committed
Update checks
Signed-off-by: Peter Solymos <psolymos@gmail.com>
1 parent 09972a8 commit 5f37342

3 files changed

Lines changed: 46 additions & 5 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: bSims
22
Type: Package
33
Title: Agent-Based Bird Point Count Simulator
44
Version: 0.3-4
5-
Date: 2025-08-12
5+
Date: 2025-08-31
66
Authors@R:
77
c(person(given = "Peter",
88
family = "Solymos",

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,23 +184,23 @@ nc <- 2 # number of cores
184184
## sequential
185185
system.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
190190
cl <- makeCluster(nc)
191191
## note: loading the package is optional
192192
system.time(clusterEvalQ(cl, library(bSims)))
193193
#> user system elapsed
194-
#> 0.000 0.000 0.444
194+
#> 0.001 0.000 0.442
195195
system.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
198198
stopCluster(cl)
199199

200200
## parallel forking
201201
if (.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
```

RELEASE.R

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,44 @@ devtools::check()
1616
# install
1717
devtools::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()

0 commit comments

Comments
 (0)