Running 'testthat.R' [2s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(vdiffr)
  > library(distcrete)
  > library(incidence)
  > library(projections)
  > library(outbreaks)
  > library(magrittr)
  
  Attaching package: 'magrittr'
  
  The following objects are masked from 'package:testthat':
  
      equals, is_less_than, not
  
  > 
  > test_check("projections")
  -- Skip (test-accessors.R:4:5): Accessors return the right thing ---------------
  Reason: On CRAN
  
  -- Skip (test-accessors.R:23:5): Expected errors -------------------------------
  Reason: On CRAN
  
  -- Skip (test-build_projections.R:4:5): Test round trip ------------------------
  Reason: On CRAN
  
  -- Skip (test-build_projections.R:29:5): Test dates default --------------------
  Reason: On CRAN
  
  -- Skip (test-build_projections.R:52:5): Test errors ---------------------------
  Reason: On CRAN
  
  -- Skip (test-build_projections.R:71:5): Test ordering -------------------------
  Reason: On CRAN
  
  -- Skip (test-conversion.R:4:5): Test against reference results ----------------
  Reason: On CRAN
  
  -- Skip (test-cumulate.R:4:3): Test cumulate() ---------------------------------
  Reason: On CRAN
  
  -- Skip (test-internals.R:4:5): Errors are thrown when they should -------------
  Reason: On CRAN
  
  -- Skip (test-plots.R:4:3): Test against reference results ---------------------
  Reason: On CRAN
  
  -- Skip (test-plots.R:135:3): Plotting issues expected errors ------------------
  Reason: On CRAN
  
  -- Skip (test-print.R:4:3): Printing as planned --------------------------------
  Reason: On CRAN
  
  -- Skip (test-project.R:69:3): Test that dates start when needed ---------------
  Reason: On CRAN
  
  -- FAILURE (test-project.R:128:3): Errors are thrown when they should ----------
  `project(i, si = si, time_change = 2, R = matrix(1.2))` threw an error with unexpected message.
  Expected match: "`R` must be a `vector` or a `list` if `time_change` provided; it is a `matrix, array`"
  Actual message: "`R` must be a `vector` or a `list` if `time_change` provided; it is a `matrix`"
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-project.R:128:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-projections::project(i, si = si, time_change = 2, R = matrix(1.2))
  
  -- Skip (test-project.R:139:3): Test against reference results - Poisson model -
  Reason: On CRAN
  
  -- Skip (test-project.R:198:3): Test against reference results - NegBin model --
  Reason: On CRAN
  
  -- Skip (test-project.R:267:3): Test R_fix_within ------------------------------
  Reason: On CRAN
  
  -- Skip (test-subset.R:4:5): Test subsetting with numeric dates inputs ---------
  Reason: On CRAN
  
  -- Skip (test-subset.R:43:5): Test subsetting with Date inputs -----------------
  Reason: On CRAN
  
  -- Skip (test-subset.R:77:3): Test [ operator handles dates and content --------
  Reason: On CRAN
  
  -- Skipped tests  --------------------------------------------------------------
  * On CRAN (19)
  
  == testthat results  ===========================================================
  FAILURE (test-project.R:128:3): Errors are thrown when they should
  
  [ FAIL 1 | WARN 0 | SKIP 19 | PASS 73 ]
  Error: Test failures
  Execution halted