library("prrd")
td <- tempdir()
package = "sigr"
date()
## [1] "Sat Aug 19 16:52:21 2023"
parallelCluster <- NULL
# # parallel doesn't work due to https://github.com/r-lib/liteq/issues/22
#ncores <- parallel::detectCores()
#parallelCluster <- parallel::makeCluster(ncores)
orig_dir <- getwd()
print(orig_dir)
## [1] "/Users/johnmount/Documents/work/sigr/extras"
setwd(td)
print(td)
## [1] "/var/folders/7f/sdjycp_d08n8wwytsbgwqgsw0000gn/T//RtmpN9AUSz"
options(repos = c(CRAN="https://cloud.r-project.org"))
jobsdfe <- enqueueJobs(package=package, directory=td)
mk_fn <- function(package, directory) {
force(package)
force(directory)
function(i) {
library("prrd")
setwd(directory)
Sys.sleep(1*i)
dequeueJobs(package=package, directory=directory)
}
}
f <- mk_fn(package=package, directory=td)
if(!is.null(parallelCluster)) {
parallel::parLapply(parallelCluster, seq_len(ncores), f)
} else {
f(0)
}
## ## Reverse depends check of sigr 1.1.5
## WVPlots_1.3.5 started at 2023-08-19 16:52:22 success at 2023-08-19 16:53:17 (1/0/0)
## [1] id title status
## <0 rows> (or 0-length row.names)
summariseQueue(package=package, directory=td)
## Test of sigr 1.1.5 had 1 successes, 0 failures, and 0 skipped packages.
## Ran from 2023-08-19 16:52:22 to 2023-08-19 16:53:17 for 55 secs
## Average of 55 secs relative to 54.887 secs using 1 runners
##
## Failed packages:
##
## Skipped packages:
##
## None still working
##
## None still scheduled
setwd(orig_dir)
if(!is.null(parallelCluster)) {
parallel::stopCluster(parallelCluster)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.