data-raw/cron.R

library(cronR)

r <- cron_rscript(here::here("data-raw/data.R"))
cron_add(r, frequency = "hourly", description = "update covid data")

# run ecdc script locally
r <- cron_rscript(here::here("data-raw/ecdc.R"))
cron_add(
  r, 
  frequency = "daily", 
  at = "11am", 
  days_of_week = 5, 
  description = "update weekly ecdc data and send to server",
  user = "paul"
)

cron_ls()
epicentre-msf/covid19 documentation built on April 5, 2023, 10:24 p.m.