Running ‘testthat.R’ [3s/13s]
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: addAlgorithm (@test_Algorithm.R#4)  ───────────────────────────────
  STRING_ELT() can only be applied to a 'character vector', not a 'builtin'
  1: makeTestExperimentRegistry() at testthat/test_Algorithm.R:4
  2: makeExperimentRegistry(file.dir = file.dir, make.default = make.default, ...) at /home/ripley/R/packages/tests32/batchtools.Rcheck/tests/testthat/helper.R:31
  3: makeRegistry(file.dir = file.dir, work.dir = work.dir, conf.file = conf.file, packages = packages, 
         namespaces = namespaces, source = source, load = load, seed = seed, make.default = make.default)
  4: assertDirectoryExists(work.dir, access = "r")
  5: checkDirectoryExists(x, access)
  6: qtest(x, "S+")
  
  ── 2. Error: addAlgorithm overwrites old algo (@test_Algorithm.R#28)  ──────────
  STRING_ELT() can only be applied to a 'character vector', not a 'builtin'
  1: makeTestExperimentRegistry() at testthat/test_Algorithm.R:28
  2: makeExperimentRegistry(file.dir = file.dir, make.default = make.default, ...) at /home/ripley/R/packages/tests32/batchtools.Rcheck/tests/testthat/helper.R:31
  3: makeRegistry(file.dir = file.dir, work.dir = work.dir, conf.file = conf.file, packages = packages, 
         namespaces = namespaces, source = source, load = load, seed = seed, make.default = make.default)
  4: assertDirectoryExists(work.dir, access = "r")
  5: checkDirectoryExists(x, access)
  6: qtest(x, "S+")
  
  ── 3. Error: clusterFunctions constructor (@test_ClusterFunctions.R#10)  ───────
  STRING_ELT() can only be applied to a 'character vector', not a 'symbol'
  1: makeTestRegistry() at testthat/test_ClusterFunctions.R:10
  2: makeRegistry(file.dir = file.dir, make.default = make.default, ...) at /home/ripley/R/packages/tests32/batchtools.Rcheck/tests/testthat/helper.R:23
  3: assertDirectoryExists(work.dir, access = "r")
  4: checkDirectoryExists(x, access)
  5: qtest(x, "S+")
  
  
   *** caught segfault ***
  address 2b7ef06f, cause 'memory not mapped'
  
  Traceback:
   1: qtest(x, "S+")
   2: checkDirectoryExists(x, access)
   3: assertDirectoryExists(work.dir, access = "r")
   4: makeRegistry(file.dir = file.dir, make.default = make.default,     ...)
   5: makeTestRegistry()
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  16: test_code(desc, code, env = parent.frame())
  17: test_that("brew", {    fn = fs::file_temp()    lines = c("####", " ", "!!!", "foo=<%= job.hash %>")    writeLines(lines, fn)    res = stri_split_fixed(cfReadBrewTemplate(fn), "\n")[[1]]    assertCharacter(res, len = 3)    expect_equal(sum(stri_detect_fixed(res, "job.hash")), 1)    res = stri_split_fixed(cfReadBrewTemplate(fn, comment.string = "###"),         "\n")[[1]]    assertCharacter(res, len = 2)    expect_equal(sum(stri_detect_fixed(res, "job.hash")), 1)    reg = makeTestRegistry()    ids = batchMap(identity, 1:2, reg = reg)    jc = makeJobCollection(1, reg = reg)    text = cfReadBrewTemplate(fn, comment.string = "###")    fn = cfBrewTemplate(text = text, jc = jc, reg = reg)    brewed = readLines(fn)    expect_equal(brewed[1], "!!!")    expect_equal(brewed[2], sprintf("foo=%s", jc$job.hash))    fs::file_delete(fn)})
  18: eval(code, test_env)
  19: eval(code, test_env)
  20: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  21: doTryCatch(return(expr), name, parentenv, handler)
  22: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  23: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  26: tryCatchList(expr, classes, parentenv, handlers)
  27: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  28: test_code(NULL, exprs, env)
  29: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  30: force(code)
  31: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  32: FUN(X[[i]], ...)
  33: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  34: force(code)
  35: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  36: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  37: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  38: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  39: test_check("batchtools")
  An irrecoverable exception occurred. R is aborting now ...