Running 'testthat.R' [6s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(incidence2)
  > 
  > test_check("incidence2")
  -- FAILURE (test-incidence.R:360:3): corner cases ------------------------------
  `incidence(...)` threw an error with unexpected message.
  Expected match: "The argument `standard` must be either `TRUE` or `FALSE`"
  Actual message: "(is.logical(standard)) is not TRUE"
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-incidence.R:360:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. +-incidence2::incidence(...)
   7. \-incidence2:::incidence.Date(...)
   8.   \-base::stopifnot(...)
  
  -- FAILURE (test-incidence.R:518:3): Expected values, with groups --------------
  `res.g.4` has changed from known value recorded in 'rds/res.g.4.rds'.
  Component "group1": 'current' is not a factor
  Component "group2": 'current' is not a factor
  
  -- ERROR (test-incidence.R:531:3): Print and summary returns the object --------
  Error: Input could not be converted to date. Accepted formats are:
  Date, POSIXct, integer, numeric, character, factor
  Backtrace:
      x
   1. +-incidence2::incidence(dat, date_index = dates) test-incidence.R:531:2
   2. \-incidence2:::incidence.default(dat, date_index = dates)
   3.   \-incidence2:::check_dates(x[[date_index]])
  
  -- ERROR (test-incidence.R:550:3): cnt variable working as expected ------------
  Error: Input could not be converted to date. Accepted formats are:
  Date, POSIXct, integer, numeric, character, factor
  Backtrace:
      x
   1. +-incidence2::incidence(...) test-incidence.R:550:2
   2. \-incidence2:::incidence.default(...)
   3.   \-incidence2:::check_dates(x[[date_index]])
  
  -- Skip (test-non-exported.R:82:3): check_interval -----------------------------
  Reason: On CRAN
  
  -- Skip (test-palettes.R:4:3): vibrant -----------------------------------------
  Reason: On CRAN
  
  -- Skip (test-palettes.R:17:3): muted ------------------------------------------
  Reason: On CRAN
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (3)
  
  == testthat results  ===========================================================
  FAILURE (test-incidence.R:360:3): corner cases
  FAILURE (test-incidence.R:518:3): Expected values, with groups
  ERROR (test-incidence.R:531:3): Print and summary returns the object
  ERROR (test-incidence.R:550:3): cnt variable working as expected
  
  [ FAIL 4 | WARN 0 | SKIP 3 | PASS 185 ]
  Error: Test failures
  Execution halted