Running 'testthat.R' [2s]
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)  --------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: brightness(img, "e", tau = "auto", thresh = "Huang", 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(.)
  ...
  26: withVisible(function_list[[k]](value))
  27: function_list[[k]](value)
  28: stringr::str_replace_all
  29: getExportedValue(pkg, name)
  30: asNamespace(ns)
  31: getNamespace(ns)
  32: tryCatch(loadNamespace(name), error = function(e) stop(e))
  33: tryCatchList(expr, classes, parentenv, handlers)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: value[[3L]](cond)
  
  -- 2. Error: brightness_folder works (@test-brightness.R#28)  ------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) at testthat/test-brightness.R:28
  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: brightness_timeseries works (@test-brightness.R#56)  --------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: brightness_timeseries(img, "e", 20, tau = 100, thresh = "Huang", filt = "median", 
         parallel = 2) at testthat/test-brightness.R:56
  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(.)
  ...
  26: withVisible(function_list[[k]](value))
  27: function_list[[k]](value)
  28: stringr::str_replace_all
  29: getExportedValue(pkg, name)
  30: asNamespace(ns)
  31: getNamespace(ns)
  32: tryCatch(loadNamespace(name), error = function(e) stop(e))
  33: tryCatchList(expr, classes, parentenv, handlers)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: value[[3L]](cond)
  
  -- 4. Error: cc_brightness() works (@test-cc_brightness.R#3)  ------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.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)
  
  -- 5. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#20)  ------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:20
  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)
  
  -- 6. Error: cc_brightness_folder() works (@test-cc_brightness.R#43)  ----------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:43
  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)
  
  -- 7. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#69) 
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:69
  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)
  
  -- 8. Error: cc_number() works (@test-cc_number.R#3)  --------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.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)
  
  -- 9. Error: cc_number_timeseries() works (@test-cc_number.R#20)  --------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:20
  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)
  
  -- 10. Error: cc_number_folder() works (@test-cc_number.R#43)  -----------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:43
  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)
  
  -- 11. Error: cc_number_timeseries_folder() works (@test-cc_number.R#69)  ------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:69
  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)
  
  -- 12. Error: Class construction edge cases function correctly (@test-class_cons
  ICU init failed: U_FILE_ACCESS_ERROR
  1: number_img(img, "N", 4, rlang::set_attrs(8, auto = TRUE), NA) at testthat/test-class_constructors.R:5
  2: img %<>% number_img_common(n_ch = n_ch, def = def, thresh = thresh, tau = tau, filt = filt)
  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: number_img_common(., n_ch = n_ch, def = def, thresh = thresh, tau = tau, filt = filt)
  11: filesstrings::all_equal
  12: getExportedValue(pkg, name)
  13: asNamespace(ns)
  14: getNamespace(ns)
  15: tryCatch(loadNamespace(name), error = function(e) stop(e))
  16: tryCatchList(expr, classes, parentenv, handlers)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: value[[3L]](cond)
  
  -- 13. Error: cross_var_pillars() works (@test-cross_var-examples.R#12)  -------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: expect_equal(cross_var_pillars(x, y), z) at testthat/test-cross_var-examples.R:12
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: cross_var_pillars(x, y)
  5: filesstrings::all_equal
  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)
  
  -- 14. Error: number works (@test-number.R#5)  ---------------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: number(img, "n", tau = "auto", thresh = "Huang", filt = "median", parallel = 2) at testthat/test-number.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(.)
  ...
  26: withVisible(function_list[[k]](value))
  27: function_list[[k]](value)
  28: stringr::str_replace_all
  29: getExportedValue(pkg, name)
  30: asNamespace(ns)
  31: getNamespace(ns)
  32: tryCatch(loadNamespace(name), error = function(e) stop(e))
  33: tryCatchList(expr, classes, parentenv, handlers)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: value[[3L]](cond)
  
  -- 15. Error: number_folder works (@test-number.R#28)  -------------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) at testthat/test-number.R:28
  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)
  
  -- 16. Error: number_timeseries works (@test-number.R#57)  ---------------------
  ICU init failed: U_FILE_ACCESS_ERROR
  1: number_timeseries(img, "N", 20, tau = 100, thresh = "Huang", filt = "median", parallel = 2) at testthat/test-number.R:57
  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(.)
  ...
  26: withVisible(function_list[[k]](value))
  27: function_list[[k]](value)
  28: stringr::str_replace_all
  29: getExportedValue(pkg, name)
  30: asNamespace(ns)
  31: getNamespace(ns)
  32: tryCatch(loadNamespace(name), error = function(e) stop(e))
  33: tryCatchList(expr, classes, parentenv, handlers)
  34: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  35: value[[3L]](cond)
  
  -- 17. Error: deduplicate_nb_filename() works correctly (@test-utils.R#26)  ----
  ICU init failed: U_FILE_ACCESS_ERROR
  1: expect_equal(deduplicate_nb_filename(path), paste0("detrended_exponential_thresh=4,3_tau=1,2", 
         "_brightness_filt=NA,NA.tif")) at testthat/test-utils.R:26
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: deduplicate_nb_filename(path)
  5: path %>% stringr::str_detect(paste0("detrended_", c("boxcar", "exponential", "polynomial"))) %>% 
         any()
  6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  7: eval(quote(`_fseq`(`_lhs`)), env, env)
  8: eval(quote(`_fseq`(`_lhs`)), env, env)
  9: `_fseq`(`_lhs`)
  10: freduce(value, `_function_list`)
  11: function_list[[i]](value)
  12: stringr::str_detect
  13: getExportedValue(pkg, name)
  14: asNamespace(ns)
  15: getNamespace(ns)
  16: tryCatch(loadNamespace(name), error = function(e) stop(e))
  17: tryCatchList(expr, classes, parentenv, handlers)
  18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  19: value[[3L]](cond)
  
  -- 18. Error: deduplicate_cc_nb_filename() works correctly (@test-utils.R#65)  -
  ICU init failed: U_FILE_ACCESS_ERROR
  1: expect_equal(deduplicate_cc_nb_filename(path), paste0("detrended_exponential_thresh=4,3_tau=1,2", 
         "_brightness_filt=NA,NA.tif")) at testthat/test-utils.R:65
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: deduplicate_cc_nb_filename(path)
  5: path %>% stringr::str_detect(paste0("detrended_", c("boxcar", "exponential", "polynomial"))) %>% 
         any()
  6: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  7: eval(quote(`_fseq`(`_lhs`)), env, env)
  8: eval(quote(`_fseq`(`_lhs`)), env, env)
  9: `_fseq`(`_lhs`)
  10: freduce(value, `_function_list`)
  11: function_list[[i]](value)
  12: stringr::str_detect
  13: getExportedValue(pkg, name)
  14: asNamespace(ns)
  15: getNamespace(ns)
  16: tryCatch(loadNamespace(name), error = function(e) stop(e))
  17: tryCatchList(expr, classes, parentenv, handlers)
  18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  19: value[[3L]](cond)
  
  -- 19. Error: make_cc_nb_filename_ending() edge cases work correctly (@test-util
  ICU init failed: U_FILE_ACCESS_ERROR
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-utils.R:82
  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)
  
  == testthat results  ===========================================================
  OK: 24 SKIPPED: 0 FAILED: 19
  1. Error: brightness works (@test-brightness.R#5) 
  2. Error: brightness_folder works (@test-brightness.R#28) 
  3. Error: brightness_timeseries works (@test-brightness.R#56) 
  4. Error: cc_brightness() works (@test-cc_brightness.R#3) 
  5. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#20) 
  6. Error: cc_brightness_folder() works (@test-cc_brightness.R#43) 
  7. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#69) 
  8. Error: cc_number() works (@test-cc_number.R#3) 
  9. Error: cc_number_timeseries() works (@test-cc_number.R#20) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted