docs/data.md

Data

Minor checks of the crawler.

Coveralls test coverage Codecov test coverage

Sources

Cronjob

To set up the cronjob, recreate your config file somewhere in your home directory.

cd /home
mkdir ncov
R -e "coronavirus::create_config()"
vi _coronavirus.yml

After editing the config file we can create the script that will crawl fresh data. There is a convenience create_script function to do so.

R -e "coronavirus::create_script()"

You should test that all works fine by running the crawler once from the terminal.

Rscript script.R

Then set up the cron job.

crontab -e

In that file place the following to crawl every hour. If you want to set another interval consult crontab guru.

0 * * * * cd /home/ncov && Rscript script.R

All set!

Though every version should be backward compatible, it's good practice to re-run a crawl after installing a new version of the package.

Corrections

:warning: Corrected inaccuracies

v0.1.1

v0.0.6

v0.0.3:



ELMARDI0107/corona_hel documentation built on April 12, 2020, 12:16 a.m.