Running ‘spelling.R’
  Running ‘testthat.R’ [10s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(nandb)
  > 
  > if (!nandb:::win32bit()) test_check("nandb")
  ── 1. Error: brightness works (@test-brightness.R#5)  ──────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::brightness(...)
    2. [ `%<>%`(...) ] with 7 more calls
   10. autothresholdr::mean_stack_thresh(., method = thresh[[1]], ignore_na = TRUE)
   14. autothresholdr::auto_thresh(...)
   15. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 2. Error: brightness_timeseries works (@test-brightness.R#93)  ──────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::brightness_timeseries(...)
    2. [ `%<>%`(...) ] with 7 more calls
   10. autothresholdr::mean_stack_thresh(., method = thresh[[1]], ignore_na = TRUE)
   14. autothresholdr::auto_thresh(...)
   15. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 3. Error: cc_brightness() works (@test-cc_brightness.R#7)  ──────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_brightness(img, thresh = "Huang", detrend = TRUE, filt = "median")
    2. [ `%<>%`(...) ] with 7 more calls
   10. nandb:::prepare_filt(.)
   11. [ `%<>%`(...) ] with 7 more calls
   19. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   20. strex:::str_match_arg_basic(...)
   21. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 4. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#65)  ──────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_brightness_timeseries(...)
    2. [ `%<>%`(...) ] with 7 more calls
   10. nandb:::prepare_filt(.)
   11. [ `%<>%`(...) ] with 7 more calls
   19. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   20. strex:::str_match_arg_basic(...)
   21. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 5. Error: cc_brightness_folder() works (@test-cc_brightness.R#156)  ─────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_brightness_folder(thresh = "Huang", detrend = FALSE)
    5. purrr::map(...)
    6. nandb:::.f(.x[[i]], ...)
    7. nandb::cc_brightness(...)
    8. [ `%<>%`(...) ] with 7 more calls
   16. autothresholdr::mean_stack_thresh(., thresh[[1]])
   20. autothresholdr::auto_thresh(...)
   21. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   22. strex:::str_match_arg_basic(...)
   23. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 6. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#180)
  The file a.tif, already exists and `overwrite` is set to `FALSE`.
      * To enable overwriting, use `overwrite = TRUE`.
  Backtrace:
    1. ijtiff::write_tif(img, "a.tif")
   11. ijtiff:::argchk_write_tif(...)
   12. ijtiff:::custom_stop(...)
  
  ── 7. Error: cc_number() works (@test-cc_number.R#7)  ──────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_number(img, thresh = "Huang", detrend = TRUE, filt = "median")
    2. [ `%<>%`(...) ] with 7 more calls
   10. nandb:::prepare_filt(.)
   11. [ `%<>%`(...) ] with 7 more calls
   19. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   20. strex:::str_match_arg_basic(...)
   21. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 8. Error: cc_number_timeseries() works (@test-cc_number.R#65)  ──────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_number_timeseries(...)
    2. [ `%<>%`(...) ] with 7 more calls
   10. nandb:::prepare_filt(.)
   11. [ `%<>%`(...) ] with 7 more calls
   19. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   20. strex:::str_match_arg_basic(...)
   21. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 9. Error: cc_number_folder() works (@test-cc_number.R#157)  ─────────────────
  The file a.tif, already exists and `overwrite` is set to `FALSE`.
      * To enable overwriting, use `overwrite = TRUE`.
  Backtrace:
    1. ijtiff::write_tif(img, "a.tif")
   11. ijtiff:::argchk_write_tif(...)
   12. ijtiff:::custom_stop(...)
  
  ── 10. Error: cc_number_timeseries_folder() works (@test-cc_number.R#184)  ─────
  The file a.tif, already exists and `overwrite` is set to `FALSE`.
      * To enable overwriting, use `overwrite = TRUE`.
  Backtrace:
    1. ijtiff::write_tif(img, "a.tif")
   11. ijtiff:::argchk_write_tif(...)
   12. ijtiff:::custom_stop(...)
  
  ── 11. Failure: Class construction edge cases function correctly (@test-class_co
  `cc_number_img_common(img, 1, 2, "s")` threw an error with unexpected message.
  Expected match: "If swaps is specified, it must have an attribute\\s?'auto'.+Your `swaps` has no attribute 'auto'"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. nandb:::cc_number_img_common(img, 1, 2, "s")
    7. [ `%<>%`(...) ] with 7 more calls
   15. nandb:::prepare_filt(.)
   16. [ `%<>%`(...) ] with 7 more calls
   24. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   25. strex:::str_match_arg_basic(...)
   26. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 12. Failure: Class construction edge cases function correctly (@test-class_co
  `cc_number_img_common(img, 1:2, structure(1, auto = TRUE), "s")` threw an error with unexpected message.
  Expected match: "Assertion on.*swaps.*failed: Must have length 2.* has length 1"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. nandb:::cc_number_img_common(...)
    7. [ `%<>%`(...) ] with 7 more calls
   15. nandb:::prepare_filt(.)
   16. [ `%<>%`(...) ] with 7 more calls
   24. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   25. strex:::str_match_arg_basic(...)
   26. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 13. Failure: Class construction edge cases function correctly (@test-class_co
  `cc_number_img_common(img, 1:2, structure(1, auto = 1:2), "s")` threw an error with unexpected message.
  Expected match: "The 'auto' attribute of `swaps` must be the same length\\s?as.+'swaps' itself.+Your `swaps` has length 1 and its\\s?'auto' attribute has.+length 2"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. nandb:::cc_number_img_common(...)
    7. [ `%<>%`(...) ] with 7 more calls
   15. nandb:::prepare_filt(.)
   16. [ `%<>%`(...) ] with 7 more calls
   24. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   25. strex:::str_match_arg_basic(...)
   26. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 14. Failure: Class construction edge cases function correctly (@test-class_co
  `cc_number_img_common(img, 1:2, structure(1, auto = NA), "s")` threw an error with unexpected message.
  Expected match: "Each element of `swaps` must have an associated\\s?attribute.+'auto' which must be `TRUE` or `FALSE` and not\\s?NA.+Element 1 of `swaps` has an 'auto' attribute which\\s?is.+NA"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. nandb:::cc_number_img_common(...)
    7. [ `%<>%`(...) ] with 7 more calls
   15. nandb:::prepare_filt(.)
   16. [ `%<>%`(...) ] with 7 more calls
   24. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   25. strex:::str_match_arg_basic(...)
   26. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 15. Error: Class construction edge cases function correctly (@test-class_cons
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. testthat::expect_equal(...)
    4. nandb:::cc_number_img_common(...)
    5. [ `%<>%`(...) ] with 7 more calls
   13. nandb:::prepare_filt(.)
   14. [ `%<>%`(...) ] with 7 more calls
   22. filesstrings::match_arg(., c("smooth", "median"), ignore_case = TRUE)
   23. strex:::str_match_arg_basic(...)
   24. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 16. Error: number works (@test-number.R#5)  ─────────────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::number(img, "n", thresh = "Huang", filt = "median", detrend = TRUE)
    2. [ `%<>%`(...) ] with 7 more calls
   10. autothresholdr::mean_stack_thresh(., method = thresh[[1]], ignore_na = TRUE)
   14. autothresholdr::auto_thresh(...)
   15. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 17. Error: number_timeseries works (@test-number.R#90)  ─────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::number_timeseries(img, "N", 20, thresh = "Huang")
    2. [ `%<>%`(...) ] with 7 more calls
   10. autothresholdr::mean_stack_thresh(., method = thresh[[1]], ignore_na = TRUE)
   14. autothresholdr::auto_thresh(...)
   15. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 18. Error: make_cc_nb_filename_ending() edge cases work correctly (@test-util
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. nandb::cc_brightness(img, thresh = "Huang", detrend = FALSE)
    2. [ `%<>%`(...) ] with 7 more calls
   10. autothresholdr::mean_stack_thresh(., thresh[[1]])
   14. autothresholdr::auto_thresh(...)
   15. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 68 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 18 ]
  1. Error: brightness works (@test-brightness.R#5) 
  2. Error: brightness_timeseries works (@test-brightness.R#93) 
  3. Error: cc_brightness() works (@test-cc_brightness.R#7) 
  4. Error: cc_brightness_timeseries() works (@test-cc_brightness.R#65) 
  5. Error: cc_brightness_folder() works (@test-cc_brightness.R#156) 
  6. Error: cc_brightness_timeseries_folder() works (@test-cc_brightness.R#180) 
  7. Error: cc_number() works (@test-cc_number.R#7) 
  8. Error: cc_number_timeseries() works (@test-cc_number.R#65) 
  9. Error: cc_number_folder() works (@test-cc_number.R#157) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted