Skip to content
Prev 167806 / 398502 Next

How to Run R Programs in a Scheduled Way

Thorsten Muehge wrote:
Write some Windows command script (also referred to as batch file) that 
calls Rterm with some input file or R CMD BATCH. Then tell your 
scheduler to run that file as you like.

For me this worked very well with Windows XP and Windows Server 2003. In 
Windows Server 2008 64-bit (and hence I guess the same in Vista) I found 
that the new scheduler runs R extremely slow (by a factor of roughly 10 
if some relevant amount of CPU performance and IO traffic is requested) 
so that I decided to moved to a cron implementation. At least, I have 
not found any solution for the Windows 2008 task scheduler so far.

Uwe Ligges