Running 'testthat.R' [1s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(autothresholdr)
  > 
  > test_check("autothresholdr")
  -- 1. Error: (unknown) (@test_auto_thresh_methods.R#3)  ------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: system.file("extdata", "eg.tif", package = "autothresholdr") %>% ijtiff::read_tif() at testthat/test_auto_thresh_methods.R:3
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: ijtiff::read_tif(.)
  10: path %<>% stringr::str_replace_all(stringr::coll("\\"), "/")
  ...
  16: withVisible(function_list[[k]](value))
  17: function_list[[k]](value)
  18: stringr::str_replace_all
  19: getExportedValue(pkg, name)
  20: asNamespace(ns)
  21: getNamespace(ns)
  22: tryCatch(loadNamespace(name), error = function(e) stop(e))
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: value[[3L]](cond)
  
  -- 2. Error: mean_stack_thresh works (@test_stack_thresh.R#3)  -----------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "autothresholdr")) at testthat/test_stack_thresh.R:3
  2: path %<>% stringr::str_replace_all(stringr::coll("\\"), "/")
  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: stringr::str_replace_all
  11: getExportedValue(pkg, name)
  12: asNamespace(ns)
  13: getNamespace(ns)
  14: tryCatch(loadNamespace(name), error = function(e) stop(e))
  15: tryCatchList(expr, classes, parentenv, handlers)
  16: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  17: value[[3L]](cond)
  
  -- 3. Error: auto_thresh works (@test_thresh.R#4)  -----------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: system.file("extdata", "eg.tif", package = "autothresholdr") %>% ijtiff::read_tif() at testthat/test_thresh.R:4
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: withVisible(function_list[[k]](value))
  8: function_list[[k]](value)
  9: ijtiff::read_tif(.)
  10: path %<>% stringr::str_replace_all(stringr::coll("\\"), "/")
  ...
  16: withVisible(function_list[[k]](value))
  17: function_list[[k]](value)
  18: stringr::str_replace_all
  19: getExportedValue(pkg, name)
  20: asNamespace(ns)
  21: getNamespace(ns)
  22: tryCatch(loadNamespace(name), error = function(e) stop(e))
  23: tryCatchList(expr, classes, parentenv, handlers)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: value[[3L]](cond)
  
  -- 4. Error: auto_thresh works with matrices (@test_thresh.R#37)  --------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: system.file("extdata", "eg.tif", package = "autothresholdr") %>% ijtiff::read_tif() %>% 
         {
             .[, , 1, 1]
         } at testthat/test_thresh.R:37
  2: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  3: eval(quote(`_fseq`(`_lhs`)), env, env)
  4: eval(quote(`_fseq`(`_lhs`)), env, env)
  5: `_fseq`(`_lhs`)
  6: freduce(value, `_function_list`)
  7: function_list[[i]](value)
  8: ijtiff::read_tif(.)
  9: path %<>% stringr::str_replace_all(stringr::coll("\\"), "/")
  10: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  ...
  15: withVisible(function_list[[k]](value))
  16: function_list[[k]](value)
  17: stringr::str_replace_all
  18: getExportedValue(pkg, name)
  19: asNamespace(ns)
  20: getNamespace(ns)
  21: tryCatch(loadNamespace(name), error = function(e) stop(e))
  22: tryCatchList(expr, classes, parentenv, handlers)
  23: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  24: value[[3L]](cond)
  
  -- 5. Error: translate_fail works (@test_utils.R#4)  ---------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: expect_equal(translate_fail(3, "s"), 2^8 - 1) at testthat/test_utils.R:4
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: translate_fail(3, "s")
  5: filesstrings::match_arg
  6: getExportedValue(pkg, name)
  7: asNamespace(ns)
  8: getNamespace(ns)
  9: tryCatch(loadNamespace(name), error = function(e) stop(e))
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  12: value[[3L]](cond)
  
  == testthat results  ===========================================================
  OK: 0 SKIPPED: 0 FAILED: 5
  1. Error: (unknown) (@test_auto_thresh_methods.R#3) 
  2. Error: mean_stack_thresh works (@test_stack_thresh.R#3) 
  3. Error: auto_thresh works (@test_thresh.R#4) 
  4. Error: auto_thresh works with matrices (@test_thresh.R#37) 
  5. Error: translate_fail works (@test_utils.R#4) 
  
  Error: testthat unit tests failed
  Execution halted