epiforecasts / covidregionaldata

An interface to subnational and national level COVID-19 data. For all countries supported, this includes a daily time-series of cases. Wherever available we also provide data on deaths, hospitalisations, and tests. National level data is also supported using a range of data sources as well as linelist data and links to intervention data sets.
https://epiforecasts.io/covidregionaldata/
Other
37 stars 18 forks source link

Fix argument name in vignette #380

Closed Bisaloo closed 3 years ago

Bisaloo commented 3 years ago

On a related note, why is this vignette set to eval = FALSE? Using eval = TRUE would prevent this kind of errors and ensure the displayed output match the real output (even after updates).

github-actions[bot] commented 3 years ago

👋 Thanks for opening this pull request! Can you please run through the following checklist before requesting review (ticking as complete or if not relevant).

Thank you again for the contribution. If making large scale changes consider using our pre-commit hooks (see the contributing guide) to more easily comply with our guidelines.

seabbs commented 3 years ago

Thanks for this and yes I agree. The reason is that building them with downloaded data can be error prone and we wanted to be hyper careful that we stayed on CRAN. That being said @joseph-palmer is turning on some of these chunks in #367 but its a bit of an open question of many of them.

Bisaloo commented 3 years ago

To deal with long runtime vignettes and fetching online data that might be unavailable, I've had success with pre-rendering vignettes. Otherwise, you can cache the data with vcr and webmockr but it is usually too much trouble if just used in the vignette in my opinion.