Running ‘spelling.R’
  Running ‘testthat.R’ [3s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nandb)
  > 
  > test_check("nandb")
  ── 1. Error: brightness works (@test-brightness.R#5)  ──────────────────────────
  LOGICAL() can only be applied to a 'logical', not a 'builtin'
  1: brightness(img, "e", thresh = "Huang", detrend = TRUE, filt = "median", parallel = 2) at testthat/test-brightness.R:5
  2: img %<>% nb_get_img()
  3: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: eval(quote(`_fseq`(`_lhs`)), env, env)
  6: `_fseq`(`_lhs`)
  7: freduce(value, `_function_list`)
  8: withVisible(function_list[[k]](value))
  9: function_list[[k]](value)
  10: nb_get_img(.)
  11: checkmate::assert(checkmate::check_array(img, min.d = 3, max.d = 4), checkmate::check_file_exists(img))
  12: assertChoice(combine, c("or", "and"))
  13: checkChoice(x, choices, null.ok, fmatch)
  14: qassert(null.ok, "B1")
  
  
   *** caught illegal operation ***
  address 8b1d4e0, cause 'illegal opcode'
  
  Traceback:
   1: qtest(x, "S+")
   2: checkFileExists(x, access, extension)
   3: checkmate::assert_file_exists(path)
   4: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb"))
   5: eval(code, test_env)
   6: eval(code, test_env)
   7: 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)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  13: tryCatchList(expr, classes, parentenv, handlers)
  14: 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) {    })
  15: test_code(desc, code, env = parent.frame())
  16: test_that("brightness_folder works", {    set.seed(1)    img <- ijtiff::read_tif(system.file("extdata", "50.tif",         package = "nandb"))    cwd <- setwd(tempdir())    on.exit(setwd(cwd))    ijtiff::write_tif(img, "50.tif")    ijtiff::write_tif(img, "50again.tif")    ijtiff::write_tif(array(4, dim = rep(4, 4)), "const.tif")    brightness_folder(def = "b", detrend = FALSE)    expect_true(all(c("50_brightness_B_swaps=NA_thresh=NA_filt=NA.tif",         "50again_brightness_B_swaps=NA_thresh=NA_filt=NA.tif",         paste0("const_brightness_B_swaps=NA,NA,NA,NA_", "thresh=NA,NA,NA,NA_filt=NA,NA,NA,NA.tif")) %in%         list.files("brightness")))    brightness_folder(def = "E", detrend = FALSE)    expect_true(all(c("50_brightness_epsilon_swaps=NA_thresh=NA_filt=NA.tif",         "50again_brightness_epsilon_swaps=NA_thresh=NA_filt=NA.tif",         paste0("const_brightness_epsilon_swaps=NA,NA,NA,NA_",             "thresh=NA,NA,NA,NA_filt=NA,NA,NA,NA.tif")) %in%         list.files("brightness")))    filesstrings::create_dir("tempwithintemp")    ijtiff::write_tif(img, "tempwithintemp/50.tif")    brightness_file("tempwithintemp/50.tif", def = "b")    expect_true(any(stringr::str_detect(dir("tempwithintemp/brightness"),         "^50_brightness_B.*tif$")))    brightness_file("tempwithintemp/50.tif", def = "E")    expect_true(any(stringr::str_detect(dir("tempwithintemp/brightness"),         "^50_brightness_epsilon.*tif$")))    filesstrings::dir.remove("tempwithintemp")    filesstrings::dir.remove("brightness")    suppressWarnings(file.remove(list.files()))    setwd(cwd)})
  17: eval(code, test_env)
  18: eval(code, test_env)
  19: 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)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  25: tryCatchList(expr, classes, parentenv, handlers)
  26: 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) {    })
  27: test_code(NULL, exprs, env)
  28: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  29: force(code)
  30: 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()    })
  31: FUN(X[[i]], ...)
  32: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  33: force(code)
  34: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  35: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  36: 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)
  37: 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)
  38: test_check("nandb")
  An irrecoverable exception occurred. R is aborting now ...