Running ‘testthat.R’ [24s/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)
  Loading required package: data.table
  > 
  > test_check("batchtools")
  1. Error: clusterFunctions constructor (@test_ClusterFunctions.R#12) -----------
  error in running command: 'Illegal seek'
  1: check(makeClusterFunctionsSSH(workers = list(Worker$new(nodename = "localhost", ncpus = 1L)))) at testthat/test_ClusterFunctions.R:12
  2: expect_is(cf, "ClusterFunctions") at testthat/test_ClusterFunctions.R:5
  3: klass(object)
  4: paste(class(x), collapse = "/")
  5: makeClusterFunctionsSSH(workers = list(Worker$new(nodename = "localhost", ncpus = 1L)))
  6: assertList(workers, types = "Worker")
  7: checkList(x, types, any.missing, all.missing, len, min.len, max.len, unique, names, 
         null.ok)
  8: .Call(c_check_list, x, any.missing, all.missing, len, min.len, max.len, unique, names, 
         null.ok) %and% checkListTypes(x, types)
  9: Worker$new(nodename = "localhost", ncpus = 1L)
  10: .subset2(public_bind_env, "initialize")(...)
  11: runOSCommand(self$script, "number-of-cpus")
  12: suppressWarnings(system2(command = sys.cmd, args = sys.args, stdout = TRUE, stderr = TRUE, 
         wait = TRUE))
  13: withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
  14: system2(command = sys.cmd, args = sys.args, stdout = TRUE, stderr = TRUE, wait = TRUE)
  
  2. Failure: runOSCommand (@test_runOSCommand.R#7) ------------------------------
  x$exit.code not identical to 0.
  1/1 mismatches
  [1] 127 - 0 == 127
  
  
  3. Failure: runOSCommand (@test_runOSCommand.R#8) ------------------------------
  all(c("DESCRIPTION", "NAMESPACE", "NEWS.md") %in% x$output) isn't true.
  
  
  testthat results ================================================================
  OK: 956 SKIPPED: 6 FAILED: 3
  1. Error: clusterFunctions constructor (@test_ClusterFunctions.R#12) 
  2. Failure: runOSCommand (@test_runOSCommand.R#7) 
  3. Failure: runOSCommand (@test_runOSCommand.R#8) 
  
  Error: testthat unit tests failed
  Execution halted