Running ‘testthat.R’ [332s/318s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > 
  > library(testthat)
  > library(drake)
  
  Attaching package: 'drake'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  > 
  > test_check("drake")
  ── 1. Error: mclapply and lapply (@test-parallel.R#87)  ────────────────────────
  error writing to connection
  1: make(plan = config$plan, envir = config$envir, verbose = FALSE, jobs = 2, parallelism = "parLapply", 
         session_info = FALSE) at testthat/test-parallel.R:87
  2: make_with_config(config = config)
  3: make_targets(config = config)
  4: run_parallel_backend(config = config)
  5: get(paste0("run_", config$parallelism), envir = getNamespace("drake"))(config)
  6: run_staged_parallelism(config = config, worker = worker_parLapply)
  7: parallel_stage(worker = worker, config = config)
  8: worker(targets = build_these, meta_list = meta_list, config = config)
  9: parLapply(cl = config$cluster, X = targets, fun = drake_build_worker, meta_list = meta_list, 
         config = config)
  10: do.call(c, clusterApply(cl = cl, x = splitList(X, nchunks), fun = lapply, FUN = fun, 
         ...), quote = TRUE)
  11: clusterApply(cl = cl, x = splitList(X, nchunks), fun = lapply, FUN = fun, ...)
  12: staticClusterApply(cl, fun, length(x), argfun)
  13: sendCall(cl[[i]], fun, argfun(start + i - 1L))
  14: postNode(con, "EXEC", list(fun = fun, args = args, return = return, tag = tag))
  15: sendData(con, list(type = type, data = value, tag = tag))
  16: sendData.SOCKnode(con, list(type = type, data = value, tag = tag))
  17: serialize(data, node$con)
  
  Error in unserialize(node$con) : error reading from connection
  Calls: <Anonymous> ... doTryCatch -> recvData -> recvData.SOCKnode -> unserialize
  Execution halted
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 1247 SKIPPED: 0 FAILED: 1
  1. Error: mclapply and lapply (@test-parallel.R#87) 
  
  Error: testthat unit tests failed
  Execution halted