CRAN Package Check Results for Package batchtools

Last updated on 2025-12-06 00:48:32 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.9.18 12.66 136.29 148.95 OK
r-devel-linux-x86_64-debian-gcc 0.9.18 7.84 75.86 83.70 ERROR
r-devel-linux-x86_64-fedora-clang 0.9.18 45.00 192.00 237.00 OK
r-devel-linux-x86_64-fedora-gcc 0.9.18 24.00 216.32 240.32 OK
r-devel-windows-x86_64 0.9.18 18.00 176.00 194.00 OK
r-patched-linux-x86_64 0.9.18 15.12 122.08 137.20 OK
r-release-linux-x86_64 0.9.18 12.87 122.94 135.81 OK
r-release-macos-arm64 0.9.18 OK
r-release-macos-x86_64 0.9.18 17.00 223.00 240.00 OK
r-release-windows-x86_64 0.9.18 17.00 173.00 190.00 OK
r-oldrel-macos-arm64 0.9.18 NOTE
r-oldrel-macos-x86_64 0.9.18 11.00 161.00 172.00 NOTE
r-oldrel-windows-x86_64 0.9.18 25.00 211.00 236.00 OK

Check Details

Version: 0.9.18
Check: package dependencies
Result: WARN Cannot process vignettes Packages suggested but not available for checking: 'knitr', 'ranger', 'rmarkdown' VignetteBuilder package required for checking but not installed: ‘knitr’ Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.18
Check: examples
Result: ERROR Running examples in ‘batchtools-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: estimateRuntimes > ### Title: Estimate Remaining Runtimes > ### Aliases: estimateRuntimes print.RuntimeEstimate > > ### ** Examples > > ## Don't show: > batchtools:::example_push_temp(1) > ## End(Don't show) > # Create a simple toy registry > set.seed(1) > tmp = makeExperimentRegistry(file.dir = NA, make.default = FALSE, seed = 1) No readable configuration file found Created registry in '/tmp/RtmpBUhnTY/registry1d625554ba65da' using cluster functions 'Interactive' > addProblem(name = "iris", data = iris, fun = function(data, ...) nrow(data), reg = tmp) Adding problem 'iris' > addAlgorithm(name = "nrow", function(instance, ...) nrow(instance), reg = tmp) Adding algorithm 'nrow' > addAlgorithm(name = "ncol", function(instance, ...) ncol(instance), reg = tmp) Adding algorithm 'ncol' > addExperiments(algo.designs = list(nrow = data.table::CJ(x = 1:50, y = letters[1:5])), reg = tmp) Adding 250 experiments ('iris'[1] x 'nrow'[250] x repls[1]) ... > addExperiments(algo.designs = list(ncol = data.table::CJ(x = 1:50, y = letters[1:5])), reg = tmp) Adding 250 experiments ('iris'[1] x 'ncol'[250] x repls[1]) ... > > # We use the job parameters to predict runtimes > tab = unwrap(getJobPars(reg = tmp)) > > # First we need to submit some jobs so that the forest can train on some data. > # Thus, we just sample some jobs from the registry while grouping by factor variables. > library(data.table) Attaching package: ‘data.table’ The following object is masked from ‘package:base’: %notin% > ids = tab[, .SD[sample(nrow(.SD), 5)], by = c("problem", "algorithm", "y")] > setkeyv(ids, "job.id") > submitJobs(ids, reg = tmp) Submitting 50 jobs in 50 chunks using cluster functions 'Interactive' ... > waitForJobs(reg = tmp) [1] TRUE > > # We "simulate" some more realistic runtimes here to demonstrate the functionality: > # - Algorithm "ncol" is 5 times more expensive than "nrow" > # - x has no effect on the runtime > # - If y is "a" or "b", the runtimes are really high > runtime = function(algorithm, x, y) { + ifelse(algorithm == "nrow", 100L, 500L) + 1000L * (y %in% letters[1:2]) + } > tmp$status[ids, done := done + tab[ids, runtime(algorithm, x, y)]] > rjoin(sjoin(tab, ids), getJobStatus(ids, reg = tmp)[, c("job.id", "time.running")]) Key: <job.id> job.id problem algorithm x y time.running <int> <char> <char> <int> <char> <difftime> 1: 32 iris nrow 7 b 1100.0017 secs 2: 42 iris nrow 9 b 1100.0015 secs 3: 47 iris nrow 10 b 1100.0011 secs 4: 66 iris nrow 14 a 1100.0011 secs 5: 73 iris nrow 15 c 100.0011 secs 6: 75 iris nrow 15 e 100.0011 secs 7: 86 iris nrow 18 a 1100.0011 secs 8: 100 iris nrow 20 e 100.0013 secs 9: 101 iris nrow 21 a 1100.0014 secs 10: 103 iris nrow 21 c 100.0013 secs 11: 123 iris nrow 25 c 100.0013 secs 12: 125 iris nrow 25 e 100.0013 secs 13: 161 iris nrow 33 a 1100.0014 secs 14: 165 iris nrow 33 e 100.0014 secs 15: 169 iris nrow 34 d 100.0014 secs 16: 183 iris nrow 37 c 100.0014 secs 17: 184 iris nrow 37 d 100.0014 secs 18: 203 iris nrow 41 c 100.0013 secs 19: 207 iris nrow 42 b 1100.0013 secs 20: 209 iris nrow 42 d 100.0013 secs 21: 220 iris nrow 44 e 100.0014 secs 22: 227 iris nrow 46 b 1100.0012 secs 23: 229 iris nrow 46 d 100.0013 secs 24: 231 iris nrow 47 a 1100.0014 secs 25: 244 iris nrow 49 d 100.0014 secs 26: 260 iris ncol 2 e 500.0014 secs 27: 276 iris ncol 6 a 1500.0019 secs 28: 278 iris ncol 6 c 500.0015 secs 29: 279 iris ncol 6 d 500.0014 secs 30: 296 iris ncol 10 a 1500.0013 secs 31: 320 iris ncol 14 e 500.0014 secs 32: 340 iris ncol 18 e 500.0013 secs 33: 347 iris ncol 20 b 1500.0013 secs 34: 363 iris ncol 23 c 500.0013 secs 35: 369 iris ncol 24 d 500.0014 secs 36: 373 iris ncol 25 c 500.0014 secs 37: 387 iris ncol 28 b 1500.0015 secs 38: 410 iris ncol 32 e 500.0013 secs 39: 421 iris ncol 35 a 1500.0013 secs 40: 436 iris ncol 38 a 1500.0013 secs 41: 444 iris ncol 39 d 500.0014 secs 42: 448 iris ncol 40 c 500.0013 secs 43: 456 iris ncol 42 a 1500.0013 secs 44: 459 iris ncol 42 d 500.0015 secs 45: 467 iris ncol 44 b 1500.0014 secs 46: 468 iris ncol 44 c 500.0014 secs 47: 475 iris ncol 45 e 500.0013 secs 48: 482 iris ncol 47 b 1500.0010 secs 49: 492 iris ncol 49 b 1500.0009 secs 50: 499 iris ncol 50 d 500.0009 secs job.id problem algorithm x y time.running > > # Estimate runtimes: > est = estimateRuntimes(tab, reg = tmp) Error in estimateRuntimes(tab, reg = tmp) : Please install package 'ranger' for runtime estimation Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.18
Check: tests
Result: ERROR Running ‘testthat.R’ [23s/42s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > # setting R_TESTS to empty string because of > # https://github.com/hadley/testthat/issues/144 > # revert this when that issue in R is fixed. > Sys.setenv("R_TESTS" = "") > > library(testthat) > library(batchtools) > > test_check("batchtools") Attaching package: 'data.table' The following object is masked from 'package:base': %notin% ### [bt]: Setting seed to 11812 ... Saving _problems/test_estimateRuntimes-20.R ### [bt]: Setting seed to 3080 ... ### [bt]: Setting seed to 3082 ... ### [bt]: Setting seed to 3081 ... [ FAIL 1 | WARN 0 | SKIP 7 | PASS 1452 ] ══ Skipped tests (7) ═══════════════════════════════════════════════════════════ • On CRAN (3): 'test_ClusterFunctionsSSH.R:4:3', 'test_memory.R:4:3', 'test_sweepRegistry.R:37:3' • Test requires killJobs (2): 'test_killJobs.R:3:3', 'test_waitForJobs.R:14:3' • Test requires listJobsRunning (1): 'test_findJobs.R:79:3' • manual test (1): 'test_manual.R:2:3' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test_estimateRuntimes.R:20:3'): estimateRuntimes ──────────────────── Error in `estimateRuntimes(tab, reg = reg)`: Please install package 'ranger' for runtime estimation Backtrace: ▆ 1. └─batchtools::estimateRuntimes(tab, reg = reg) at test_estimateRuntimes.R:20:3 [ FAIL 1 | WARN 0 | SKIP 7 | PASS 1452 ] Error: ! Test failures. Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.18
Check: package vignettes
Result: NOTE Package has ‘vignettes’ subdirectory but apparently no vignettes. Perhaps the ‘VignetteBuilder’ information is missing from the DESCRIPTION file? Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.9.18
Check: package dependencies
Result: NOTE Package suggested but not available for checking: ‘doMPI’ Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64

Version: 0.9.18
Check: Rd cross-references
Result: NOTE Package unavailable to check Rd xrefs: ‘Rmpi’ Flavors: r-oldrel-macos-arm64, r-oldrel-macos-x86_64