Running ‘test_all.R’ [2s/13s]
Running the tests in ‘tests/test_all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("fail")
  Loading required package: fail
  
  Attaching package: 'fail'
  
  The following object is masked from 'package:testthat':
  
      fail
  
  
   *** caught segfault ***
  address 70d3378f, cause 'memory not mapped'
  
  Traceback:
   1: qassert(path, "S1")
   2: checkPath(path)
   3: fail(path)
   4: eval(code, test_env)
   5: eval(code, test_env)
   6: 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)
   7: doTryCatch(return(expr), name, parentenv, handler)
   8: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   9: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  10: doTryCatch(return(expr), name, parentenv, handler)
  11: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  12: tryCatchList(expr, classes, parentenv, handlers)
  13: 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) {    })
  14: test_code(desc, code, env = parent.frame())
  15: test_that("apply", {    path = tempfile()    f = fail(path)    f$put(a = 1:10, b = 1:100, c = 1:1000)    x = f$apply(mean)    expect_true(is.list(x))    expect_true(all(names(x) %in% letters[1:3]))    expect_equal(sort(unlist(x, use.names = FALSE)), c(5.5, 50.5,         500.5))    x = f$apply(mean, keys = c("c", "b"))    expect_equal(names(x), c("c", "b"))    x = f$apply(mean, keys = letters[1:3], simplify = TRUE)    expect_equal(x, setNames(c(5.5, 50.5, 500.5), letters[1:3]))    x = f$apply(mean, keys = letters[1:3], use.names = FALSE)    expect_true(is.null(names(x)))    fun = function(x, y) mean(x) + y    x = f$apply(fun, y = -0.5, simplify = TRUE)    expect_equal(x, setNames(c(5, 50, 500), letters[1:3]))    f$remove(f$ls())    f$put(a = 1, b = 2, c = "NA")    expect_error(f$apply(log), "key 'c'")    expect_equal(length(f$apply(identity, keys = NULL)), 0)    expect_error(f$apply(identity, keys = "xxx"))    expect_equal(length(f$apply(identity, keys = character(0L))),         0)    f$remove(f$ls())    expect_equal(length(f$apply(identity)), 0)})
  16: eval(code, test_env)
  17: eval(code, test_env)
  18: 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)
  19: doTryCatch(return(expr), name, parentenv, handler)
  20: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  21: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  22: doTryCatch(return(expr), name, parentenv, handler)
  23: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  24: tryCatchList(expr, classes, parentenv, handlers)
  25: 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) {    })
  26: test_code(NULL, exprs, env)
  27: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  28: force(code)
  29: 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()    })
  30: FUN(X[[i]], ...)
  31: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  32: force(code)
  33: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  34: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  35: 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)
  36: 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)
  37: test_check("fail")
  An irrecoverable exception occurred. R is aborting now ...