tests/testthat/test-report_plots.R

fit <- readRDS("test-models/estimate_infections/static.rds")
cases <- EpiNow2::example_confirmed[1:30]

test_that("report_plots works with  default settings", {
  expect_error(
    report_plots(
      summarised_estimates = fit$summarised,
      reported = cases
    ),
    NA
  )
})

Try the EpiNow2 package in your browser

Any scripts or data that you put into this service are public.

EpiNow2 documentation built on Sept. 26, 2023, 5:11 p.m.