Running ‘testthat.R’ [4s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 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")
  Saving 7 x 7 in image
  [ FAIL 3 | WARN 0 | SKIP 19 | PASS 73 ]
  
  ══ Skipped tests (19) ══════════════════════════════════════════════════════════
  • On CRAN (19): 'test-accessors.R:2:5', 'test-accessors.R:21:5',
    'test-build_projections.R:2:5', 'test-build_projections.R:27:5',
    'test-build_projections.R:50:5', 'test-build_projections.R:69:5',
    'test-conversion.R:2:5', 'test-cumulate.R:2:3', 'test-internals.R:2:5',
    'test-plots.R:31:3', 'test-plots.R:107:3', 'test-print.R:2:3',
    'test-project.R:67:3', 'test-project.R:137:3', 'test-project.R:196:3',
    'test-project.R:265:3', 'test-subset.R:2:5', 'test-subset.R:41:5',
    'test-subset.R:75:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-project.R:15:3'): Projections can be performed for a single day ──
  get_dates(p) (`actual`) not identical to as.Date("2020-01-24") (`expected`).
  
  `actual` is an S3 object of class <Date>, an integer vector
  `expected` is an S3 object of class <Date>, a double vector
  ── Failure ('test-project.R:36:3'): Projections can be performed for a single day ──
  get_dates(p) (`actual`) not identical to as.Date("2020-01-24") + 0:1 (`expected`).
  
  `actual` is an S3 object of class <Date>, an integer vector
  `expected` is an S3 object of class <Date>, a double vector
  ── Failure ('test-project.R:58:3'): Projections can be performed for a single day and single simulation ──
  get_dates(p) (`actual`) not identical to as.Date("2020-01-24") (`expected`).
  
  `actual` is an S3 object of class <Date>, an integer vector
  `expected` is an S3 object of class <Date>, a double vector
  
  [ FAIL 3 | WARN 0 | SKIP 19 | PASS 73 ]
  Deleting unused snapshots:
  • plots/basic-example-plot.svg
  • plots/evd-proj-box-no-outliers.svg
  • plots/evd-proj-box-only.svg
  • plots/evd-proj-full-red-ribbon-narrow-range.svg
  • plots/evd-proj-no-box-custom-lines.svg
  • plots/evd-proj-no-ribbon.svg
  • plots/evd-proj-red-box.svg
  • plots/evd-proj-red-ribbon.svg
  • plots/evd-proj-ribbon-only.svg
  • plots/evd-proj-with-incidence-incidence-and-custom.svg
  • plots/evd-proj-with-incidence-incidence-box-only.svg
  • plots/evd-proj-with-incidence-incidence-no-box.svg
  • plots/evd-proj-with-incidence-incidence.svg
  • plots/evd-proj.svg
  Error: Test failures
  Execution halted