Running ‘spelling.R’
  Running ‘testthat.R’ [4s/11s]
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)  ──────────────────────────
  could not find function "intmat_list_bind_nth_rows"
  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(.)
  ...
  16: freduce(value, `_function_list`)
  17: withVisible(function_list[[k]](value))
  18: function_list[[k]](value)
  19: ijtiff::read_tif(.)
  20: filesstrings::str_before_last(path, "/")
  21: str_before_nth(strings = strings, pattern = pattern, n = -1)
  22: str_nth_instance_indices(strings, pattern, n)
  23: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  24: eval(lhs, parent, parent)
  25: eval(lhs, parent, parent)
  
  ── 2. Error: brightness_folder works (@test-brightness.R#40)  ──────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) at testthat/test-brightness.R:40
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 3. Error: brightness_timeseries works (@test-brightness.R#92)  ──────────────
  could not find function "intmat_list_bind_nth_rows"
  1: brightness(img, "e") at testthat/test-brightness.R:92
  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(.)
  ...
  16: freduce(value, `_function_list`)
  17: withVisible(function_list[[k]](value))
  18: function_list[[k]](value)
  19: ijtiff::read_tif(.)
  20: filesstrings::str_before_last(path, "/")
  21: str_before_nth(strings = strings, pattern = pattern, n = -1)
  22: str_nth_instance_indices(strings, pattern, n)
  23: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  24: eval(lhs, parent, parent)
  25: eval(lhs, parent, parent)
  
  ── 4. Error: cc_brightness() works (@test-cc_brightness.R#3)  ──────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:3
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 5. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#51)  ──────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:51
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 6. Error: cc_brightness_folder() works (@test-cc_brightness.R#126)  ─────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:126
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 7. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#152)
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_brightness.R:152
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 8. Error: cc_number() works (@test-cc_number.R#3)  ──────────────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:3
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 9. Error: cc_number_timeseries() works (@test-cc_number.R#51)  ──────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:51
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 10. Error: cc_number_folder() works (@test-cc_number.R#130)  ────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:130
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 11. Error: cc_number_timeseries_folder() works (@test-cc_number.R#157)  ─────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-cc_number.R:157
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 12. Error: matrix_raster_plot is ggplot (@test-graphics.R#4)  ───────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) at testthat/test-graphics.R:4
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 13. Error: number works (@test-number.R#5)  ─────────────────────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: number(img, "n", thresh = "Huang", filt = "median", detrend = TRUE) 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(.)
  ...
  16: freduce(value, `_function_list`)
  17: withVisible(function_list[[k]](value))
  18: function_list[[k]](value)
  19: ijtiff::read_tif(.)
  20: filesstrings::str_before_last(path, "/")
  21: str_before_nth(strings = strings, pattern = pattern, n = -1)
  22: str_nth_instance_indices(strings, pattern, n)
  23: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  24: eval(lhs, parent, parent)
  25: eval(lhs, parent, parent)
  
  ── 14. Error: number_folder works (@test-number.R#34)  ─────────────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "50.tif", package = "nandb")) at testthat/test-number.R:34
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 15. Error: number_timeseries works (@test-number.R#78)  ─────────────────────
  could not find function "intmat_list_bind_nth_rows"
  1: number(img, "N") at testthat/test-number.R:78
  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(.)
  ...
  16: freduce(value, `_function_list`)
  17: withVisible(function_list[[k]](value))
  18: function_list[[k]](value)
  19: ijtiff::read_tif(.)
  20: filesstrings::str_before_last(path, "/")
  21: str_before_nth(strings = strings, pattern = pattern, n = -1)
  22: str_nth_instance_indices(strings, pattern, n)
  23: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  24: eval(lhs, parent, parent)
  25: eval(lhs, parent, parent)
  
  ── 16. Error: make_cc_nb_filename_ending() edge cases work correctly (@test-util
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-utils.R:127
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ── 17. Error: `make_nb_filename_ending()` works (@test-utils.R#153)  ───────────
  could not find function "intmat_list_bind_nth_rows"
  1: ijtiff::read_tif(system.file("extdata", "two_ch.tif", package = "nandb")) at testthat/test-utils.R:153
  2: filesstrings::str_before_last(path, "/")
  3: str_before_nth(strings = strings, pattern = pattern, n = -1)
  4: str_nth_instance_indices(strings, pattern, n)
  5: intmat_list_bind_nth_rows(instances, n - 1) %>% magrittr::set_colnames(c("start", 
         "end"))
  6: eval(lhs, parent, parent)
  7: eval(lhs, parent, parent)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 48 SKIPPED: 1 WARNINGS: 0 FAILED: 17
  1. Error: brightness works (@test-brightness.R#5) 
  2. Error: brightness_folder works (@test-brightness.R#40) 
  3. Error: brightness_timeseries works (@test-brightness.R#92) 
  4. Error: cc_brightness() works (@test-cc_brightness.R#3) 
  5. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#51) 
  6. Error: cc_brightness_folder() works (@test-cc_brightness.R#126) 
  7. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#152) 
  8. Error: cc_number() works (@test-cc_number.R#3) 
  9. Error: cc_number_timeseries() works (@test-cc_number.R#51) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted