Running ‘spelling.R’
  Running ‘testthat.R’ [64s/66s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(detrendr)
  > 
  > test_check("detrendr")
  ── 1. Failure: detrended_img works (@test-class-constructors.R#5)  ─────────────
  `detrended_img(...)` threw an error with unexpected message.
  Expected match: "Elements of a detrended_img must all be integers."
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::detrended_img(...)
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(...)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 2. Error: detrended_img works (@test-class-constructors.R#14)  ──────────────
  argument "arg_sym" is missing, with no default
  Backtrace:
    1. testthat::expect_equal(...)
    4. detrendr::detrended_img(three_d, "exp", 9, FALSE, purpose = "ff")
    5. [ `%<>%`(...) ] with 7 more calls
   13. filesstrings::match_arg(...)
   14. strex:::str_match_arg_basic(...)
   15. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 3. Failure: detrending errors correctly (@test-detrend.R#175)  ──────────────
  `img_detrend_boxcar(img, "abc", purpose = "ff")` threw an error with unexpected message.
  Expected match: "auto"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_boxcar(img, "abc", purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 4. Failure: detrending errors correctly (@test-detrend.R#176)  ──────────────
  `img_detrend_exp(img, "abc", purpose = "ff")` threw an error with unexpected message.
  Expected match: "auto"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_exp(img, "abc", purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 5. Failure: detrending errors correctly (@test-detrend.R#177)  ──────────────
  `img_detrend_polynom(img, "abc", purpose = "ff")` threw an error with unexpected message.
  Expected match: "auto"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_polynom(img, "abc", purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 6. Failure: detrending errors correctly (@test-detrend.R#178)  ──────────────
  `img_detrend_boxcar(img, FALSE, purpose = "ff")` threw an error with unexpected message.
  Expected match: "positive number or"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_boxcar(img, FALSE, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 7. Failure: detrending errors correctly (@test-detrend.R#182)  ──────────────
  `img_detrend_exp(img, FALSE, purpose = "ff")` threw an error with unexpected message.
  Expected match: "positive number or"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_exp(img, FALSE, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 8. Failure: detrending errors correctly (@test-detrend.R#186)  ──────────────
  `img_detrend_polynom(img, FALSE, purpose = "ff")` threw an error with unexpected message.
  Expected match: "positive number or"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_polynom(img, FALSE, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 9. Failure: detrending errors correctly (@test-detrend.R#191)  ──────────────
  `img_detrend_polynom(img, degree = 1:7, purpose = "ff")` threw an error with unexpected message.
  Expected match: "length 1 or length equal to the.+number of channels.+7.+1"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_polynom(img, degree = 1:7, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 10. Failure: detrending errors correctly (@test-detrend.R#195)  ─────────────
  `img_detrend_boxcar(img, l = 1:7, purpose = "ff")` threw an error with unexpected message.
  Expected match: "length 1 or length equal to the number.+of channels.+7.+1"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_boxcar(img, l = 1:7, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 11. Failure: detrending errors correctly (@test-detrend.R#199)  ─────────────
  `img_detrend_exp(img, tau = 1:7, purpose = "ff")` threw an error with unexpected message.
  Expected match: "length 1 or length equal to the.+number.+of channels.+7.+1"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_exp(img, tau = 1:7, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 12. Failure: detrending errors correctly (@test-detrend.R#203)  ─────────────
  `img_detrend_polynom(img, degree = -1, purpose = "ff")` threw an error with unexpected message.
  Expected match: "must be greater than zero"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_polynom(img, degree = -1, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 13. Failure: detrending errors correctly (@test-detrend.R#207)  ─────────────
  `img_detrend_polynom(img, degree = 1.5, purpose = "ff")` threw an error with unexpected message.
  Expected match: "must be an integer"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_polynom(img, degree = 1.5, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 14. Failure: detrending errors correctly (@test-detrend.R#211)  ─────────────
  `img_detrend_boxcar(img, l = -1, purpose = "ff")` threw an error with unexpected message.
  Expected match: "must be greater than zero"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_boxcar(img, l = -1, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 15. Failure: detrending errors correctly (@test-detrend.R#215)  ─────────────
  `img_detrend_boxcar(img, l = 1.5, purpose = "ff")` threw an error with unexpected message.
  Expected match: "must be an integer"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_boxcar(img, l = 1.5, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ── 16. Failure: detrending errors correctly (@test-detrend.R#219)  ─────────────
  `img_detrend_exp(img, tau = -1, purpose = "ff")` threw an error with unexpected message.
  Expected match: "must be greater than zero"
  Actual message: "argument \"arg_sym\" is missing, with no default"
  Backtrace:
    1. testthat::expect_error(...)
    6. detrendr::img_detrend_exp(img, tau = -1, purpose = "ff")
    7. [ `%<>%`(...) ] with 7 more calls
   15. filesstrings::match_arg(., c("fcs", "ffs"), ignore_case = TRUE)
   16. strex:::str_match_arg_basic(...)
   17. checkmate::assert_string(arg_sym, na.ok = TRUE)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 127 | SKIPPED: 19 | WARNINGS: 2 | FAILED: 16 ]
  1. Failure: detrended_img works (@test-class-constructors.R#5) 
  2. Error: detrended_img works (@test-class-constructors.R#14) 
  3. Failure: detrending errors correctly (@test-detrend.R#175) 
  4. Failure: detrending errors correctly (@test-detrend.R#176) 
  5. Failure: detrending errors correctly (@test-detrend.R#177) 
  6. Failure: detrending errors correctly (@test-detrend.R#178) 
  7. Failure: detrending errors correctly (@test-detrend.R#182) 
  8. Failure: detrending errors correctly (@test-detrend.R#186) 
  9. Failure: detrending errors correctly (@test-detrend.R#191) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted