Running ‘testthat.R’ [29s/53s]
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)
  Loading required package: data.table
  Breaking change introduced in batchtools v0.9.6: The format of the returned data.table of the functions `reduceResultsDataTable()`, getJobTable()`, `getJobPars()`, and `getJobResources()` has changed. List columns are not unnested automatically anymore. To manually unnest tables, batchtools provides the helper function `unwrap()` now, e.g. `unwrap(getJobPars())`. The previously introduced helper function `flatten()` will be deprecated due to a name clash with `purrr::flatten()`.
  > 
  > test_check("batchtools")
  ── 1. Error: pm/multicore (@test_parallelMap.R#16)  ────────────────────────────
  argument "def" is missing, with no default
  1: submitAndWait(reg, ids = ids, resources = list(pm.backend = "multicore", ncpus = 2)) at testthat/test_parallelMap.R:16
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:34
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:22
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:35
  6: reg$cluster.functions$submitJob(reg = reg, jc = jc)
  7: doJobCollection(jc, output = jc$log.file)
  8: doJobCollection.JobCollection(jc, output = jc$log.file)
  9: parallelMap::parallelGetOptions()
  10: setNames(lapply(opts, getPMDefOption), opts)
  11: lapply(opts, getPMDefOption)
  12: FUN(X[[i]], ...)
  13: getOption(sprintf("parallelMap.default.%s", opt), def)
  
  ── 2. Error: pm/socket (@test_parallelMap.R#27)  ───────────────────────────────
  argument "def" is missing, with no default
  1: submitAndWait(reg, ids = ids, resources = list(pm.backend = "socket", ncpus = 2)) at testthat/test_parallelMap.R:27
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:34
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:22
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /data/gannet/ripley/R/packages/tests-devel/batchtools.Rcheck/tests/testthat/helper.R:35
  6: reg$cluster.functions$submitJob(reg = reg, jc = jc)
  7: doJobCollection(jc, output = jc$log.file)
  8: doJobCollection.JobCollection(jc, output = jc$log.file)
  9: parallelMap::parallelGetOptions()
  10: setNames(lapply(opts, getPMDefOption), opts)
  11: lapply(opts, getPMDefOption)
  12: FUN(X[[i]], ...)
  13: getOption(sprintf("parallelMap.default.%s", opt), def)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1395 SKIPPED: 7 FAILED: 2
  1. Error: pm/multicore (@test_parallelMap.R#16) 
  2. Error: pm/socket (@test_parallelMap.R#27) 
  
  Error: testthat unit tests failed
  Execution halted