Alex Bădoi Alex Bădoi - 1 year ago 81
R Question

How can i schedule an R code to run without having my PC on? [web-hosting]

I am wondering if it's possible to have relatively simple R code pull and feed data into say... a text file attached to an email without having to keep my PC on.

I have a web-scraping code here that use:


to scrape some web data which i would like to save daily..

Putting that on a loop that runs every 24 hours would be relatively easy, but i don't want to keep my PC on or not able to use the R environment while this is running.

what are my options?

Answer Source

Suggest you spin up an AWS EC2 instance and set the script to run as a cron job on a daily basis.

Here's some resources:

Requires a little bash but if you aren't familiar it's definitely worth learning.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download