Running 'testthat.R' [55s]
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")
  -- Skip (test_ClusterFunctions.R:25:3): clusterFunctions constructor -----------
  Reason: On windows
  
  ### [bt]: Setting seed to 17484 ...
  -- Skip (test_ClusterFunctionsMulticore.R:4:3): cf multicore -------------------
  Reason: On windows
  
  -- Skip (test_ClusterFunctionsSSH.R:4:3): cf ssh -------------------------------
  Reason: On windows
  
  -- Skip (test_JobCollection.R:28:3): makeJobCollection does not expand relative 
  Reason: On windows
  
  -- FAILURE (test_batchMap.R:9:3): batchMap -------------------------------------
  readRDS(fs::path(reg$file.dir, "user.function.rds")) not equal to `fun`.
  Names: 1 string mismatch
  Length mismatch: comparison on first 2 components
  Component 2: 'current' is not an environment
  
  -- Skip (test_findJobs.R:81:3): findOnSystem -----------------------------------
  Reason: Test requires listJobsRunning
  
  -- Skip (test_killJobs.R:5:3): killJobs ----------------------------------------
  Reason: Test requires killJobs
  
  -- Skip (test_manual.R:4:3): rscimark ------------------------------------------
  Reason: manual test
  
  -- Skip (test_memory.R:4:3): memory measurements work --------------------------
  Reason: On windows
  
  -- Skip (test_parallelMap.R:10:3): pm/multicore --------------------------------
  Reason: On windows
  
  -- Skip (test_runOSCommand.R:4:3): runOSCommand --------------------------------
  Reason: On windows
  
  -- Skip (test_runOSCommand.R:24:3): stdin --------------------------------------
  Reason: On windows
  
  -- Skip (test_sweepRegistry.R:39:3): relative paths work (#113) ----------------
  Reason: On CRAN
  
  ### [bt]: Setting seed to 3080 ...
  ### [bt]: Setting seed to 3082 ...
  ### [bt]: Setting seed to 3081 ...
  -- Skip (test_waitForJobs.R:16:3): waitForJobs: detection of expired jobs ------
  Reason: Test requires killJobs
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (1)
  * On windows (8)
  * Test requires killJobs (2)
  * Test requires listJobsRunning (1)
  * manual test (1)
  
  == testthat results  ===========================================================
  FAILURE (test_batchMap.R:9:3): batchMap
  
  [ FAIL 1 | WARN 0 | SKIP 13 | PASS 1438 ]
  Error: Test failures
  Execution halted