Reputation: 288
I need to schedule/run an R script every 15 min. Running on an AWS RStudio instance.
I have played a bit with 'cronR', including loading the add-in. I can figure out how to get it to run "minutely", "hourly", etc...but not every 15-min.
What's the best way to get this done...either in RStudio via cronR or alternative, or via some other method?
Upvotes: 3
Views: 2404
Reputation: 288
So I followed @r2evans advice and opened an issue on git. It was addressed almost immediately with a fix to the code and an update to the readme. Figured I would answer this for completeness in case someone else ever finds their way here...
You can now schedule a job every 15 min with 'cronR' either in the RStudio add-in, or with the following code:
cron_add(script, frequency = '*/15 * * * *', id = 'Job ID', description = 'Every 15 min')
One note is that you might need to reinstall the package using devtools to push through the most recent changes:
devtools::install_github("bnosac/cronR")
Upvotes: 3