epiparameter icon indicating copy to clipboard operation
epiparameter copied to clipboard

Automate and document data update process

Open Bisaloo opened this issue 3 years ago • 1 comments

It would be good to add a data-raw/ folder with a script to update the data provided in this package from the source google spreadsheet.

This would allow us to make sure the update process is always done in the same fashion, and thus simplify the code in a couple of places, such as:

https://github.com/epiverse-trace/epiparameter/blob/9524e66c9f2666dafd0b04bfe4d5b6f5febc122e/R/epidist.R#L68-L74

If we are sure this step is always run to update the bundled dataset, then there's no need to run it each time the function is called.

Bisaloo avatar Nov 14 '22 12:11 Bisaloo

Reference: https://r-pkgs.org/data.html#sec-data-data-raw

Bisaloo avatar Nov 14 '22 12:11 Bisaloo