Skip to content

Commit d2e3678

Browse files
avallecamclaude
andcommitted
suppress load_survey() 'No reference provided' warning
Add warning = FALSE to all chunk headers that call contactsurveys::download_survey() + socialmixr::load_survey(), suppressing the cosmetic 'No reference provided' warning from socialmixr. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8d5ce7f commit d2e3678

7 files changed

Lines changed: 9 additions & 9 deletions

episodes/compare-interventions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ output <- epidemics::model_vacamole(
360360

361361
1. Run the model
362362

363-
```{r}
363+
```{r, message = FALSE, warning = FALSE}
364364
survey_files_2 <- contactsurveys::download_survey(
365365
survey = "https://doi.org/10.5281/zenodo.3874557",
366366
verbose = FALSE

episodes/contact-matrices.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Contact matrices are commonly estimated from studies that use diaries to record
8383

8484
The R package `{socialmixr}` contains functions which can estimate contact matrices from POLYMOD and other surveys. We can download and load the POLYMOD survey data directly from Zenodo using `{contactsurveys}` and `{socialmixr}`:
8585

86-
```{r polymod_, echo = TRUE, message = FALSE}
86+
```{r polymod_, echo = TRUE, message = FALSE, warning = FALSE}
8787
survey_files <- contactsurveys::download_survey(
8888
survey = "https://doi.org/10.5281/zenodo.3874557",
8989
verbose = FALSE
@@ -201,7 +201,7 @@ Similar to the code above, to access vector values within a dataframe, you can u
201201

202202
:::::::::::::::::::::::: instructor
203203

204-
```{r zambia_solution}
204+
```{r zambia_solution, message = FALSE, warning = FALSE}
205205
# Generate the contact matrix for Zambia only
206206
contacts_byage_zambia <- socialmixr::contact_matrix(
207207
survey = zambia_sa_survey,

episodes/disease-burden.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ We'll use `{epiparameter}` to define these delay distributions. The Gamma distri
8383

8484
:::::::::::::::: instructor
8585

86-
```{r, echo = TRUE, message = FALSE}
86+
```{r, echo = TRUE, message = FALSE, warning = FALSE}
8787
# download and load contact and population data from Zenodo
8888
survey_files <- contactsurveys::download_survey(
8989
survey = "https://doi.org/10.5281/zenodo.3874557",

episodes/modelling-interventions.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ We will investigate the effect of interventions on a COVID-19 outbreak using an
8585

8686
The SEIR model divides the population into four compartments: Susceptible (S), Exposed (E), Infectious (I), and Recovered (R). We will set the following parameters for our model: $R_0 = 2.7$ (basic reproduction number), latent period or pre-infectious period $= 4$ days, and the infectious period $= 5.5$ days (parameters adapted from [Davies et al. (2020)](https://doi.org/10.1016/S2468-2667(20)30133-X)). We adopt a contact matrix with age bins 0-18, 18-65, 65 years and older using `{socialmixr}`, and assume that one in every 1 million individuals in each age group is infectious at the start of the epidemic.
8787

88-
```{r model_setup, echo = TRUE, message = FALSE}
88+
```{r model_setup, echo = TRUE, message = FALSE, warning = FALSE}
8989
# download and load survey data
9090
survey_files <- contactsurveys::download_survey(
9191
survey = "https://doi.org/10.5281/zenodo.3874557",

episodes/simulating-transmission.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ Use the POLYMOD survey available at `https://doi.org/10.5281/zenodo.3874557`
196196

197197
:::::::::::::::::::::::: solution
198198

199-
```{r polymod_uk, echo = TRUE, message = FALSE}
199+
```{r polymod_uk, echo = TRUE, message = FALSE, warning = FALSE}
200200
# Download and load the contact survey data
201201
survey_files <- contactsurveys::download_survey(
202202
survey = "https://doi.org/10.5281/zenodo.3874557",

episodes/template.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ contacts_byage
8686

8787
## Output
8888

89-
```{r polymod_uk, echo = FALSE, message = FALSE}
89+
```{r polymod_uk, echo = FALSE, message = FALSE, warning = FALSE}
9090
survey_files <- contactsurveys::download_survey(
9191
survey = "https://doi.org/10.5281/zenodo.3874557",
9292
verbose = FALSE
@@ -130,7 +130,7 @@ Load contact and population data for Poland from the POLYMOD Zenodo survey using
130130

131131
:::::::::::::::::::::::: solution
132132

133-
```{r polymod_poland, message = FALSE}
133+
```{r polymod_poland, message = FALSE, warning = FALSE}
134134
survey_files <- contactsurveys::download_survey(
135135
survey = "https://doi.org/10.5281/zenodo.3874557",
136136
verbose = FALSE

episodes/vaccine-comparisons.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ We will illustrate this using results from `model_default()` in `{epidemics}`. T
6767
+ vaccination program 02: vaccination rate 0.01.
6868

6969

70-
```{r, echo = FALSE, message = FALSE}
70+
```{r, echo = FALSE, message = FALSE, warning = FALSE}
7171
survey_files <- contactsurveys::download_survey(
7272
survey = "https://doi.org/10.5281/zenodo.3874557",
7373
verbose = FALSE

0 commit comments

Comments
 (0)