Running ‘spelling.R’
  Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(autothresholdr)
  > 
  > if (!autothresholdr:::win32bit()) test_check("autothresholdr")
  ── 1. Error: Huang2 works (@test_auto_thresh_methods.R#13)  ────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   4. autothresholdr::auto_thresh(img, "Huang")
   5. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   6. strex:::str_match_arg_basic(...)
   7. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 2. Error: Intermodes works (@test_auto_thresh_methods.R#20)  ────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   5. autothresholdr::auto_thresh(img, "inter")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 3. Error: IsoData works (@test_auto_thresh_methods.R#24)  ───────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "iso")), 13)
   5. autothresholdr::auto_thresh(img, "iso")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 4. Error: Li works (@test_auto_thresh_methods.R#28)  ────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "Li")), 7)
   5. autothresholdr::auto_thresh(img, "Li")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 5. Error: Intermodes works (@test_auto_thresh_methods.R#32)  ────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   5. autothresholdr::auto_thresh(img, "inter")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 6. Failure: MaxEntropy works (@test_auto_thresh_methods.R#36)  ──────────────
  `as.vector(auto_thresh(img, "maxe"))` threw an error with unexpected message.
  Expected match: "failed to find threshold"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(as.vector(auto_thresh(img, "maxe")), "failed to find threshold")
    7. autothresholdr::auto_thresh(img, "maxe")
    8. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
    9. strex:::str_match_arg_basic(...)
   10. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 7. Error: MinErrorI works (@test_auto_thresh_methods.R#44)  ─────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "mine")), 21)
   5. autothresholdr::auto_thresh(img, "mine")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 8. Error: Intermodes works (@test_auto_thresh_methods.R#48)  ────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   5. autothresholdr::auto_thresh(img, "inter")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 9. Error: Minimum works (@test_auto_thresh_methods.R#52)  ───────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "mini")), 7)
   5. autothresholdr::auto_thresh(img, "mini")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 10. Error: Moments works (@test_auto_thresh_methods.R#56)  ──────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "mom")), 19)
   5. autothresholdr::auto_thresh(img, "mom")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 11. Error: Percentile works (@test_auto_thresh_methods.R#60)  ───────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "perc")), 22)
   5. autothresholdr::auto_thresh(img, "perc")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 12. Error: RenyiEntropy works (@test_auto_thresh_methods.R#64)  ─────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(as.vector(auto_thresh(img, "ren")), 34)
   5. autothresholdr::auto_thresh(img, "ren")
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 13. Error: Shanbhag works (@test_auto_thresh_methods.R#69)  ─────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(auto_thresh(img, "shan"), ans)
   4. autothresholdr::auto_thresh(img, "shan")
   5. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   6. strex:::str_match_arg_basic(...)
   7. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 14. Failure: Yen works (@test_auto_thresh_methods.R#73)  ────────────────────
  `auto_thresh(img, "y")` threw an error with unexpected message.
  Expected match: "failed to find threshold"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
   1. testthat::expect_error(auto_thresh(img, "y"), "failed to find threshold")
   6. autothresholdr::auto_thresh(img, "y")
   7. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   8. strex:::str_match_arg_basic(...)
   9. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 15. Error: mean_stack_thresh works (@test_stack_thresh.R#6)  ────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. autothresholdr::mean_stack_thresh(img, "Otsu")
   5. autothresholdr::auto_thresh(...)
   6. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   7. strex:::str_match_arg_basic(...)
   8. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 16. Error: auto_thresh works (@test_thresh.R#6)  ────────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   4. autothresholdr::auto_thresh(img, "IJD")
   5. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   6. strex:::str_match_arg_basic(...)
   7. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 17. Error: auto_thresh works with matrices (@test_thresh.R#78)  ─────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(...)
   4. autothresholdr::auto_thresh(img, "IJD")
   5. filesstrings::match_arg(method, available_methods, ignore_case = TRUE)
   6. strex:::str_match_arg_basic(...)
   7. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 18. Error: translate_fail works (@test_utils.R#4)  ──────────────────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
   1. testthat::expect_equal(translate_fail(3, "s"), 2^8 - 1)
   4. autothresholdr:::translate_fail(3, "s")
   5. filesstrings::match_arg(fail, c("saturate", "zero"), ignore_case = TRUE)
   6. strex:::str_match_arg_basic(...)
   7. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 2 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 18 ]
  1. Error: Huang2 works (@test_auto_thresh_methods.R#13) 
  2. Error: Intermodes works (@test_auto_thresh_methods.R#20) 
  3. Error: IsoData works (@test_auto_thresh_methods.R#24) 
  4. Error: Li works (@test_auto_thresh_methods.R#28) 
  5. Error: Intermodes works (@test_auto_thresh_methods.R#32) 
  6. Failure: MaxEntropy works (@test_auto_thresh_methods.R#36) 
  7. Error: MinErrorI works (@test_auto_thresh_methods.R#44) 
  8. Error: Intermodes works (@test_auto_thresh_methods.R#48) 
  9. Error: Minimum works (@test_auto_thresh_methods.R#52) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted