Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update {epiparameter} usage #106

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/testthat/test-probability_contain.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test_that("probability_contain works with <epiparameter>", {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
author = "Lloyd-Smith",
single_epiparameter = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-probability_epidemic.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ test_that("probability_epidemic works with <epiparameter>", {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
author = "Lloyd-Smith",
single_epiparameter = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-proportion_cluster_size.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ test_that("proportion_cluster_size works with <epiparameter>", {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
author = "Lloyd-Smith",
single_epiparameter = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-proportion_transmission.R
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ test_that("proportion_transmission works with <epiparameter>", {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
author = "Lloyd-Smith",
single_epiparameter = TRUE
)
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (requireNamespace("epiparameter", quietly = TRUE)) {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
author = "Lloyd-Smith",
single_epiparameter = TRUE
)
Expand All @@ -29,7 +29,7 @@ test_that("get_param fails as expected with incorrect parameters", {
od <- suppressMessages(
epiparameter::epiparameter_db(
disease = "COVID-19",
epi_dist = "incubation period",
epi_name = "incubation period",
author = "Linton",
single_epiparameter = TRUE
)
Expand Down
2 changes: 1 addition & 1 deletion vignettes/proportion_transmission.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ To show the proportion of transmission using both methods we can load the estima
```{r, load-offspring-dist}
library(epiparameter)
offspring_dists <- epiparameter_db(
epi_dist = "offspring distribution"
epi_name = "offspring distribution"
)
```

Expand Down
4 changes: 2 additions & 2 deletions vignettes/superspreading.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,12 @@ diseases and evaluate how likely they are to cause epidemics.
```{r, epiparam}
sars <- epiparameter_db(
disease = "SARS",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
single_epiparameter = TRUE
)
evd <- epiparameter_db(
disease = "Ebola Virus Disease",
epi_dist = "offspring distribution",
epi_name = "offspring distribution",
single_epiparameter = TRUE
)
```
Expand Down
Loading