/usr/lib/R/site-library/BiocParallel/unitTests/test_BatchJobsParam.R is in r-bioc-biocparallel 0.6.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | test_BatchJobsParam <-
function()
{
backend <- BatchJobsParam(progressbar=FALSE, cleanup=TRUE)
register(backend)
f <- function(x) if (x == 0) stop(x) else x
checkEquals(bplapply(1:3, f), as.list(1:3))
backend <- BatchJobsParam(progressbar=FALSE, catch.errors=TRUE)
register(backend)
checkException(bplapply(0:3, f))
checkEquals(bplapply(0:3, identity), as.list(0:3))
}
|