Skip to content

Commit

Permalink
wrap example dataset failures in dontrun
Browse files Browse the repository at this point in the history
  • Loading branch information
nmdefries committed Sep 30, 2024
1 parent d3abd33 commit bf9c101
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 14 deletions.
36 changes: 27 additions & 9 deletions R/reexports-epidatasets.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
#' grad_employ_subset
#'
#' # fails
#' data(grad_employ_subset, package = "epipredict")
#' \dontrun{
#' data(grad_employ_subset, package = "epipredict")
#' }
#' @export
delayedAssign("grad_employ_subset", epidatasets::grad_employ_subset)

Expand All @@ -30,7 +32,9 @@ delayedAssign("grad_employ_subset", epidatasets::grad_employ_subset)
#' covid_case_death_rates
#'
#' # fails
#' data(covid_case_death_rates, package = "epipredict")
#' \dontrun{
#' data(covid_case_death_rates, package = "epipredict")
#' }
#' @export
delayedAssign("covid_case_death_rates", epidatasets::covid_case_death_rates)

Expand All @@ -48,7 +52,9 @@ delayedAssign("covid_case_death_rates", epidatasets::covid_case_death_rates)
#' state_census
#'
#' # fails
#' data(state_census, package = "epipredict")
#' \dontrun{
#' data(state_census, package = "epipredict")
#' }
#' @export
delayedAssign("state_census", epidatasets::state_census)

Expand All @@ -66,7 +72,9 @@ delayedAssign("state_census", epidatasets::state_census)
#' counts_subset
#'
#' # fails
#' data(counts_subset, package = "epipredict")
#' \dontrun{
#' data(counts_subset, package = "epipredict")
#' }
#' @export
delayedAssign("counts_subset", epidatasets::counts_subset)

Expand All @@ -84,7 +92,9 @@ delayedAssign("counts_subset", epidatasets::counts_subset)
#' ctis_covid_behaviours
#'
#' # fails
#' data(ctis_covid_behaviours, package = "epipredict")
#' \dontrun{
#' data(ctis_covid_behaviours, package = "epipredict")
#' }
#' @export
delayedAssign("ctis_covid_behaviours", epidatasets::ctis_covid_behaviours)

Expand All @@ -102,7 +112,9 @@ delayedAssign("ctis_covid_behaviours", epidatasets::ctis_covid_behaviours)
#' county_smoothed_cli_comparison
#'
#' # fails
#' data(county_smoothed_cli_comparison, package = "epipredict")
#' \dontrun{
#' data(county_smoothed_cli_comparison, package = "epipredict")
#' }
#' @export
delayedAssign("county_smoothed_cli_comparison", epidatasets::county_smoothed_cli_comparison)

Expand All @@ -120,7 +132,9 @@ delayedAssign("county_smoothed_cli_comparison", epidatasets::county_smoothed_cli
#' case_death_rate_archive
#'
#' # fails
#' data(case_death_rate_archive, package = "epipredict")
#' \dontrun{
#' data(case_death_rate_archive, package = "epipredict")
#' }
#' @export
delayedAssign("case_death_rate_archive", epidatasets::case_death_rate_archive)

Expand All @@ -138,7 +152,9 @@ delayedAssign("case_death_rate_archive", epidatasets::case_death_rate_archive)
#' archive_cases_dv_subset_all_states
#'
#' # fails
#' data(archive_cases_dv_subset_all_states, package = "epipredict")
#' \dontrun{
#' data(archive_cases_dv_subset_all_states, package = "epipredict")
#' }
#' @export
delayedAssign("archive_cases_dv_subset_all_states", epidatasets::archive_cases_dv_subset_all_states)

Expand All @@ -156,6 +172,8 @@ delayedAssign("archive_cases_dv_subset_all_states", epidatasets::archive_cases_d
#' can_prov_cases
#'
#' # fails
#' data(can_prov_cases, package = "epipredict")
#' \dontrun{
#' data(can_prov_cases, package = "epipredict")
#' }
#' @export
delayedAssign("can_prov_cases", epidatasets::can_prov_cases)
4 changes: 3 additions & 1 deletion man/counts_subset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/covid_case_death_rates.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/ctis_covid_behaviours.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/grad_employ_subset.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion man/state_census.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf9c101

Please sign in to comment.