[R] Using Windows 7 Task Scheduler with R source scripts
Tracy Waldon
Tracy.Waldon at fcc.gov
Fri Jul 8 17:50:47 CEST 2011
In Windows Vista, here is what I do:
Create a .bat file that calls R to run the script. Then set the task
scheduler to run the batch file. It's a round about way but it works
for me.
# begin example of *.bat file contents
cd C:\R\R-2.13.0\bin
R CMD BATCH "C:\MyBats\MyBat.R" "C:\MyBats\MyOutput\MyBat.Rout"
# end example
HTH,
Tracy
-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On Behalf Of daniel.egan at barclayswealth.com
Sent: Friday, July 08, 2011 10:33 AM
To: r-help at r-project.org
Subject: [R] Using Windows 7 Task Scheduler with R source scripts
Hello all,
I'm trying to get a specific source file to run at a certain time each
day with WindowsScheduler
http://windows.microsoft.com/en-US/windows7/schedule-a-task
I've tried a number of methods, none of which work:
My best guess was:
1. Associate the script.R file with R in FileTypes.
2. Call the script.R file in the scheduler
This definitely opens R, but the source file doesn't execute.
Any ideas?
Much thanks,
Dan
Barclays Wealth is the wealth management division of Barclays Bank PLC.
This email may relate to or be sent from other members of the Barclays
Group.
The availability of products and services may be limited by the
applicable laws and regulations in certain jurisdictions. The Barclays
Group does not normally accept or offer business instructions via
internet email. Any action that you might take upon this message might
be at your own risk.
This email and any attachments are confidential and\ int...{{dropped:10}}
More information about the R-help
mailing list