Running 'testthat.R' [6s]
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
  
  43 observations were removed.
  n greater than number of unique date groupings. Returning all rows.
  2087 missing observations were removed.
  2087 missing observations were removed.
  2087 missing observations were removed.
  2087 missing observations were removed.
  2087 missing observations were removed.
  == Skipped tests ===============================================================
  * On CRAN (28)
  * On Windows (7)
  
  == Failed tests ================================================================
  -- Failure (test-incidence.R:155:3): single week, with groups and without count work as expected --
  x$height (`actual`) not equal to `expected_heights` (`expected`).
  
  `actual` is an S3 object of class <factor>, an integer vector
  `expected` is a character vector ('short', 'tall', 'short', 'tall', 'short', ...)
  -- Failure (test-incidence.R:156:3): single week, with groups and without count work as expected --
  x$size (`actual`) not equal to `expected_sizes` (`expected`).
  
  `actual` is an S3 object of class <factor>, an integer vector
  `expected` is a character vector ('small', 'small', 'large', 'large', 'large', ...)
  -- Failure (test-incidence.R:192:3): single week, with groups and with count work as expected --
  x$height (`actual`) not equal to `expected_heights` (`expected`).
  
  `actual` is an S3 object of class <factor>, an integer vector
  `expected` is a character vector ('short', 'tall', 'short', 'tall', 'short', ...)
  -- Failure (test-incidence.R:193:3): single week, with groups and with count work as expected --
  x$size (`actual`) not equal to `expected_sizes` (`expected`).
  
  `actual` is an S3 object of class <factor>, an integer vector
  `expected` is a character vector ('small', 'small', 'large', 'large', 'large', ...)
  -- Error (test-incidence.R:556:3): character single week, no groupings and with count work as expected --
  Error: 'min' not meaningful for factors
  Backtrace:
      x
   1. \-incidence2::incidence(...) test-incidence.R:556:2
   2.   +-base::do.call(min, args = c(x[date_index], na.rm = TRUE))
   3.   \-base::Summary.factor(...)
  
  [ FAIL 5 | WARN 0 | SKIP 35 | PASS 186 ]
  Deleting unused snapshots:
  * _snaps/plots/day.png
  * _snaps/plots/double.png
  * _snaps/plots/integer.png
  * _snaps/plots/month_grouped.png
  * _snaps/plots/multiday.png
  * _snaps/plots/quarterly_grouped.png
  * _snaps/plots/week_grouped.png
  Error: Test failures
  Execution halted