Running ‘spelling.R’
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nandb)
  > 
  > if (!nandb:::win32bit()) test_check("nandb")
  
   *** caught segfault ***
  address 0xfffffffffffffff7, cause 'memory not mapped'
  
  Traceback:
   1: setTbbThreadOptions(numThreads, stackSize)
   2: RcppParallel::setThreadOptions(n_cores)
   3: myrpois_frames(frame_means, frame_length)
   4: best_swaps_naive(img)
   5: eval_dots(dots)
   6: purrr::rerun(9, best_swaps_naive(img))
   7: eval(lhs, parent, parent)
   8: eval(lhs, parent, parent)
   9: purrr::rerun(9, best_swaps_naive(img)) %>% purrr::map_int(1)
  10: best_swaps(img[, , i, , drop = FALSE], quick = quick)
  11: detrendr::img_detrend_rh(., quick = quick)
  12: function_list[[k]](value)
  13: withVisible(function_list[[k]](value))
  14: freduce(value, `_function_list`)
  15: `_fseq`(`_lhs`)
  16: eval(quote(`_fseq`(`_lhs`)), env, env)
  17: eval(quote(`_fseq`(`_lhs`)), env, env)
  18: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  19: img %<>% detrendr::img_detrend_rh(quick = quick)
  20: brightness(img, "e", thresh = "Huang", detrend = TRUE, filt = "median",     parallel = 2)
  21: eval(code, test_env)
  22: eval(code, test_env)
  23: 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)
  24: doTryCatch(return(expr), name, parentenv, handler)
  25: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  26: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  27: doTryCatch(return(expr), name, parentenv, handler)
  28: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  29: tryCatchList(expr, classes, parentenv, handlers)
  30: 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) {    })
  31: test_code(desc, code, env = parent.frame())
  32: test_that("brightness works", {    set.seed(1)    img <- system.file("extdata", "50.tif", package = "nandb")    brightness <- brightness(img, "e", thresh = "Huang", detrend = TRUE,         filt = "median", parallel = 2)    expect_equal(mean(brightness, na.rm = TRUE), 0.028, tolerance = 0.011)    brightness <- brightness(img, "b", thresh = "Huang", filt = "mean")    expect_equal(mean(brightness, na.rm = TRUE), 1.05, tolerance = 0.01)    img %<>% ijtiff::read_tif()    brightness <- brightness(img, "B", detrend = FALSE, filt = "median")    skip_if_not_installed("abind")    two_channel_img <- abind::abind(img, img, along = 3)    brightness_2ch <- brightness(two_channel_img, "B", detrend = FALSE,         filt = "median")    expect_equal(brightness_2ch %>% {        list(dim(.), as.vector(.))    }, abind::abind(brightness, brightness, along = 3) %>% {        list(dim(.), as.vector(.))    }, check.attributes = FALSE)    expect_error(brightness(img, def = "rory"), paste0("`def` must be one of 'B' or 'epsilon'.+You have used\\s?",         "`def = 'rory'`."))})
  33: eval(code, test_env)
  34: eval(code, test_env)
  35: 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)
  36: doTryCatch(return(expr), name, parentenv, handler)
  37: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  38: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  39: doTryCatch(return(expr), name, parentenv, handler)
  40: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  41: tryCatchList(expr, classes, parentenv, handlers)
  42: 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) {    })
  43: test_code(NULL, exprs, env)
  44: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  45: force(code)
  46: doWithOneRestart(return(expr), restart)
  47: withOneRestart(expr, restarts[[1L]])
  48: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  49: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        reporter$start_file(basename(path))        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        reporter$.end_context()        reporter$end_file()    })
  50: FUN(X[[i]], ...)
  51: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  52: force(code)
  53: doWithOneRestart(return(expr), restart)
  54: withOneRestart(expr, restarts[[1L]])
  55: withRestarts(testthat_abort_reporter = function() NULL, force(code))
  56: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  57: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  58: 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)
  59: 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)
  60: test_check("nandb")
  An irrecoverable exception occurred. R is aborting now ...