Running 'testthat.R' [8s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(incidence2)
  > 
  > test_check("incidence2")
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  5766 observations outside of [2014-05-20, 2014-06-10] were removed.
  1601 observations outside of [2014-05-20, 2014-12-10] were removed.
  1601 observations outside of [2014-05-20, 2014-12-10] were removed.
  43 observations outside of [2014-05-20, 2017-12-10] were removed.
  32 observations outside of [2016-02-29, 2018-04-09] were removed.
  == Skipped tests ===============================================================
  * On CRAN (5)
  
  == Failed tests ================================================================
  -- Error (test-incidence.R:358:3): corner cases --------------------------------
  Error: (is.logical(standard)) is not TRUE
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-incidence.R:358:2
   2. | \-testthat:::expect_condition_matching(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat:::.capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-incidence2::incidence(...)
   8.   \-base::stopifnot(...)
  -- Error (test-incidence.R:527: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:527:2
   2.   +-incidence2:::incidence_(...)
   3.   \-incidence2:::incidence_.default(...)
   4.     \-incidence2:::check_dates(x[[date_index]])
  -- Error (test-incidence.R:546: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:546:2
   2.   +-incidence2:::incidence_(...)
   3.   \-incidence2:::incidence_.default(...)
   4.     \-incidence2:::check_dates(x[[date_index]])
  
  [ FAIL 3 | WARN 0 | SKIP 5 | PASS 162 ]
  Error: Test failures
  Execution halted