tests/testthat/custom_tests/test-regional-dataset.R

test_regional_dataset <- function(source, level, download = FALSE) {
  region <- eval(parse(
    text = paste0(
      source, "$new(level = '", level,
      "', verbose = FALSE)"
    )
  ))
  snapshot_dir <- "custom_data"
  region$test(
    download = download,
    snapshot_dir = snapshot_dir,
    all = TRUE
  )
}

Try the covidregionaldata package in your browser

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

covidregionaldata documentation built on Feb. 7, 2022, 9:07 a.m.