Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in R Programming by (7.3k points)

I have written an R script that pulls some data from a database, performs several operations on it and posts the output to a new database.

I would like this script to run every day at a specific time but I can not find any way to do this effectively.

Can anyone recommend a resource I could look at to solve this issue? I am running this script on a Windows machine.

1 Answer

0 votes
by

You can use Task Scheduler on Windows to schedule an R Script as follows:

  • Open Task Scheduler in All Programs

  • Create a new task

  • Under the Actions tab, create a new action

  •  Choose Start Program

  • Browse to the R script that you want to schedule

  • Input the name of your file in the arguments field

  • Input the path where the script is to be found in the Start in field

  • Go to the Triggers tab

  • Create a new trigger

  • Choose that task should be done each day, month, ... repeated several times, or however you like

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

30.5k questions

32.6k answers

500 comments

108k users

Browse Categories

...