How to schedule an R script

I have an R script which I am working on which makes some API calls and writes data to a CSV file in an S3 bucket on AWS. As of now this script is on my machine(MacOS) and I understand I can use taskscheduleR. My question is how to run script on those days (especially weekends) when I wont be turning on my laptop.

You will need a computer that is running, obviously :slight_smile:

As you are working in an AWS environment I suggest starting an EC2 instance with Ubuntu, install R & RStudio Server and schedule execution of your script via cronR package.

It will take some time & effort to set up, but once running it is pretty reliable.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.