Conversation
The dot notation age.limits was deprecated in favor of age_limits. Update compare-interventions.Rmd (2 occurrences) and template.Rmd (3 occurrences). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add library(contactsurveys) and replace socialmixr::polymod loading
with contactsurveys::download_survey() + socialmixr::load_survey()
using the Zenodo DOI for POLYMOD and Zambia surveys
- Add return_demography = TRUE to all contact_matrix() calls
- Standardize object names: contacts_byage, contacts_byage_matrix
- Add callout warning users to always specify countries = argument
- Add text explaining return_demography requirement for {epidemics}
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace socialmixr::polymod and socialmixr::get_survey() with contactsurveys::download_survey() + socialmixr::load_survey() using the Zenodo DOI. Add return_demography = TRUE and standardize object names (contacts_byage, contacts_byage_matrix) across: - simulating-transmission.Rmd - modelling-interventions.Rmd - compare-interventions.Rmd - disease-burden.Rmd - vaccine-comparisons.Rmd - template.Rmd Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Thank you!Thank you for your pull request 😃 🤖 This automated message can help you check the rendered files in your submission for clarity. If you have any questions, please feel free to open an issue in {sandpaper}. If you have files that automatically render output (e.g. R Markdown), then you should check for the following:
Rendered Changes🔍 Inspect the changes: https://github.com/epiverse-trace/tutorials-late/compare/md-outputs..md-outputs-PR-145 The following changes were observed in the rendered markdown documents: What does this mean?If you have source files that require output and figures to be generated (e.g. R Markdown), then it is important to make sure the generated figures and output are reproducible. This output provides a way for you to inspect the output in a diff-friendly manner so that it's easy to see the changes that occur due to new software versions or randomisation. ⏱️ Updated at 2026-03-23 18:36:34 +0000 |
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>
The warning is emitted by load_survey(), not contact_matrix(), so suppressing it on the contact_matrix() chunk has no effect. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
hi @Degoot-AM an experimental PR using Claude Code to edit all the calls for socialmixr in this repo. Some thoughts:
This should be ready to review after passing all checks. |
Degoot-AM
left a comment
There was a problem hiding this comment.
Nicely done ! I have made a few edits.
…n contact-matrices Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…atrices Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ambia Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…_byage_uk in compare-interventions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t-matrices Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Closes #140
Summary
age.limits→age_limitsincompare-interventions.Rmdandtemplate.Rmdcontact-matrices.Rmdwith the new loading pattern (contactsurveys::download_survey()+socialmixr::load_survey()), addreturn_demography = TRUE, new callouts for country name warning and demography requirement, and standardized object namessimulating-transmission.Rmd,modelling-interventions.Rmd,compare-interventions.Rmd,disease-burden.Rmd,vaccine-comparisons.Rmd,template.RmdTest plan
contact-matrices.Rmdand verify the new callouts display correctlycontacts_byage$demographyis populated (requiresreturn_demography = TRUE)levels(survey_load$participants$country)output matches expected countries for POLYMOD and Zambia surveys🤖 Generated with Claude Code