Closed RichardMN closed 2 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).
devtools::load_all(); devtools::test()
) first setting options(testDownload=TRUE, testSource=class-name)
and report your findings. devtools::load_all(); devtools::test()
). 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.
This is a WIP because the data cleaning hasn't been written yet, but check out the
download
function!This addresses #412. As it is it has pushed the old Switzerland code into a new class (
SwitzerlandAlt
which has the amusing senses of both "old Switzerland" and "alternate Switzerland") and would replace them with the newSwitzerland
class.The download function grabs a JSON file to determine which CSV files to download and uses both the
download
and thedownload_JSON
methods fromDataClass
.Cleaning code is to follow. There are other data streams available (including breaking out the data according to vaccination status) so I am open to votes on which to try to include and how.