Running ‘spelling.R’
  Running ‘testthat.R’ [4s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(ijtiff)
  > 
  > test_check("ijtiff")
  
   *** caught segfault ***
  address 530fdc10, cause 'memory not mapped'
  
  Traceback:
   1: qtest(x, "S+")
   2: checkFileExists(x, access, extension)
   3: checkmate::assert_file_exists(path)
   4: read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))
   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("`as_EBImage()` works", {    skip_if_not_installed("EBImage")    img <- read_tif(system.file("img", "Rlogo.tif", package = "ijtiff"))    expect_equal(dim(img), c(76, 100, 4, 1))    ebimg <- as_EBImage(img)    expect_equal(dim(ebimg), c(100, 76, 4, 1))    expect_is(ebimg, "Image")    img <- read_tif(system.file("img", "2ch_ij.tif", package = "ijtiff"))    expect_equal(dim(img), c(15, 6, 2, 5))    ebimg <- as_EBImage(img)    expect_equal(dim(ebimg), c(6, 15, 2, 5))    arr <- array(2^9, dim = rep(2, 2))    expect_equal(as_EBImage(arr), as_EBImage(ijtiff_img(arr)))    expect_error(as_EBImage(arr, force = FALSE), paste0("This function expects the input `img` to be of class.+",         ".ijtiff_img., however the `img` you have supplied is not.+",         ". To force your array through this function, use `force =.+",         "TRUE`, but take care to check that the result is what.+",         "you.d like it to be."))    expect_equal(as_EBImage(as_EBImage(arr)), as_EBImage(arr))    expect_equal(EBImage::colorMode(as_EBImage(arr)), 0)    arr <- array(2^22, dim = rep(4, 4))    expect_equal(EBImage::colorMode(as_EBImage(arr)), 2)    expect_true(mean(EBImage::imageData(as_EBImage(arr))) < mean(EBImage::imageData(as_EBImage(array(2^33,         dim = rep(4, 4))))))    expect_equal(ebimg_install_msg(), paste0("  * To install `EBImage`:",         "\n", "    - Install `BiocManager` with `install.packages(\"BiocManager\")`.\n",         "    - Then run `BiocManager::install(\"EBImage\")`."))})
  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("ijtiff")
  An irrecoverable exception occurred. R is aborting now ...