While the CRAN version of the package is updated once every month or two, the package repository gets updated daily. The
covid19sf_refresh function enables you to keep the package’s data up-to-date with the most recent data available on the package repository. The function is compared between the datasets on the installed version and the ones on the repository. If new data available on any of the package dataset, the function will prompt the following questions and enable the user to choose whether to reinstall the package or not:
If no new data is available on the package repository, the function will return the following message:
No updates are available
Once new data is available, the function will prompt the following question that enables the user to select whether to install the updates from the package repository:
/yUpdates are available on the covid19sf main repository. Do you want to reinstall the package? N
In order to make the new data available, you will have to restart your R session.
Note: As frequent changes may occur on the raw data structure (such as new fields, retroactive updates in the data, etc.), the package repository version dataset may change accordingly.