Running ‘testthat.R’ [2s/24s]
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
  > 
  > test_check("batchtools")
  1. Error: Special chars in directory names (@test_ClusterFunctions.R#82) -------
  invalid argument type
  1: submitAndWait(reg = reg) at testthat/test_ClusterFunctions.R:82
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:20
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:8
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:21
  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: buf$save(jc)
  10: writeRDS(self$updates[i, !"written"], file = fp(jc$file.dir, "updates", sprintf("%s-%i.rds", 
         jc$job.hash, first.id)))
  11: saveRDS(object, file = file)
  12: self$updates[i, !"written"]
  13: `[.data.table`(self$updates, i, !"written")
  14: eval(jsub, parent.frame(), parent.frame())
  15: eval(jsub, parent.frame(), parent.frame())
  
  2. Error: Export of environment variable DEBUGME (@test_ClusterFunctions.R#94) -
  invalid argument type
  1: submitAndWait(reg, 1) at testthat/test_ClusterFunctions.R:94
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:20
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:8
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:21
  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: buf$save(jc)
  10: writeRDS(self$updates[i, !"written"], file = fp(jc$file.dir, "updates", sprintf("%s-%i.rds", 
         jc$job.hash, first.id)))
  11: saveRDS(object, file = file)
  12: self$updates[i, !"written"]
  13: `[.data.table`(self$updates, i, !"written")
  14: eval(jsub, parent.frame(), parent.frame())
  15: eval(jsub, parent.frame(), parent.frame())
  
  3. Failure: cf multicore (@test_ClusterFunctionsMulticore.R#9) -----------------
  waitForJobs(sleep = 0.2, expire.after = 1, reg = reg) isn't true.
  
  
  4. Failure: cf multicore (@test_ClusterFunctionsMulticore.R#15) ----------------
  findDone(reg = reg) not equal to findJobs(reg = reg).
  Different number of rows
  
  
  5. Failure: cf socket (@test_ClusterFunctionsSocket.R#10) ----------------------
  waitForJobs(sleep = 0.5, reg = reg) isn't true.
  
  
  6. Failure: cf socket (@test_ClusterFunctionsSocket.R#16) ----------------------
  findDone(reg = reg) not equal to findJobs(reg = reg).
  Different number of rows
  
  
  7. Error: Job (@test_Job.R#7) --------------------------------------------------
  invalid argument type
  1: submitAndWait(reg, 1, resources = list(foo = "bar")) at testthat/test_Job.R:7
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:20
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:8
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:21
  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: buf$save(jc)
  10: writeRDS(self$updates[i, !"written"], file = fp(jc$file.dir, "updates", sprintf("%s-%i.rds", 
         jc$job.hash, first.id)))
  11: saveRDS(object, file = file)
  12: self$updates[i, !"written"]
  13: `[.data.table`(self$updates, i, !"written")
  14: eval(jsub, parent.frame(), parent.frame())
  15: eval(jsub, parent.frame(), parent.frame())
  
  8. Error: Experiment (@test_Job.R#33) ------------------------------------------
  invalid argument type
  1: addExperiments(list(p1 = data.table(i = 1:3)), list(a1 = data.table()), reg = reg) at testthat/test_Job.R:33
  2: merge(reg$defs[, !c("pars", "problem", "algorithm")], tab, by = "pars.hash", all.x = FALSE, 
         all.y = TRUE, sort = FALSE)
  3: reg$defs[, !c("pars", "problem", "algorithm")]
  4: `[.data.table`(reg$defs, , !c("pars", "problem", "algorithm"))
  5: eval(jsub, parent.frame(), parent.frame())
  6: eval(jsub, parent.frame(), parent.frame())
  
  9. Error: External directory is created (@test_Job.R#62) -----------------------
  invalid argument type
  1: submitAndWait(reg) at testthat/test_Job.R:62
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:20
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:8
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:21
  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: buf$save(jc)
  10: writeRDS(self$updates[i, !"written"], file = fp(jc$file.dir, "updates", sprintf("%s-%i.rds", 
         jc$job.hash, first.id)))
  11: saveRDS(object, file = file)
  12: self$updates[i, !"written"]
  13: `[.data.table`(self$updates, i, !"written")
  14: eval(jsub, parent.frame(), parent.frame())
  15: eval(jsub, parent.frame(), parent.frame())
  
  10. Error: makeJobCollection.ExperimentCollection (@test_JobCollection.R#44) ---
  invalid argument type
  1: addExperiments(list(p1 = data.table(i = 1:3)), list(a1 = data.table()), reg = reg) at testthat/test_JobCollection.R:44
  2: merge(reg$defs[, !c("pars", "problem", "algorithm")], tab, by = "pars.hash", all.x = FALSE, 
         all.y = TRUE, sort = FALSE)
  3: reg$defs[, !c("pars", "problem", "algorithm")]
  4: `[.data.table`(reg$defs, , !c("pars", "problem", "algorithm"))
  5: eval(jsub, parent.frame(), parent.frame())
  6: eval(jsub, parent.frame(), parent.frame())
  
  11. Error: clearRegistry (@test_Registry.R#116) --------------------------------
  invalid argument type
  1: submitAndWait(reg, ids) at testthat/test_Registry.R:116
  2: silent({
         ids = submitJobs(ids = ids, ..., reg = reg)
         waitForJobs(ids, reg = reg, sleep = sleep)
     }) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:20
  3: withr::with_options(list(batchtools.progress = FALSE, batchtools.verbose = FALSE), 
         expr) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:8
  4: force(code)
  5: submitJobs(ids = ids, ..., reg = reg) at /home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/batchtools.Rcheck/tests/testthat/helper.R:21
  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: buf$save(jc)
  10: writeRDS(self$updates[i, !"written"], file = fp(jc$file.dir, "updates", sprintf("%s-%i.rds", 
         jc$job.hash, first.id)))
  11: saveRDS(object, file = file)
  12: self$updates[i, !"written"]
  13: `[.data.table`(self$updates, i, !"written")
  14: eval(jsub, parent.frame(), parent.frame())
  15: eval(jsub, parent.frame(), parent.frame())
  
  testthat results ================================================================
  OK: 256 SKIPPED: 2 FAILED: 11
  1. Error: Special chars in directory names (@test_ClusterFunctions.R#82) 
  2. Error: Export of environment variable DEBUGME (@test_ClusterFunctions.R#94) 
  3. Failure: cf multicore (@test_ClusterFunctionsMulticore.R#9) 
  4. Failure: cf multicore (@test_ClusterFunctionsMulticore.R#15) 
  5. Failure: cf socket (@test_ClusterFunctionsSocket.R#10) 
  6. Failure: cf socket (@test_ClusterFunctionsSocket.R#16) 
  7. Error: Job (@test_Job.R#7) 
  8. Error: Experiment (@test_Job.R#33) 
  9. Error: External directory is created (@test_Job.R#62) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted