Scheduling R Script

Scheduling R scripts in Task Scheduler - CMD runs, but task does not complete

This may be related to the working directory. Could you please add something like print(getwd()) to your script and check if it is the desired working directory?

Best way to go from RStudio project development to scheduled R Script

I ended up using the solution described here: https://community.rstudio.com/t/how-to-play-nice-with-taskscheduler-r-studio-projects-and-here/24406/2 .

I didn't have to make any changes to the MAIN.R script. Instead, I scheduled it directly but added the project directory to the "Starts In" argument of the Windows Task Scheduler task.



Related Topics



Leave a reply



Submit