daniel.egan at barclayswealth.com
2011-Jul-08 14:32 UTC
[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 inte...{{dropped:27}}
Tracy Waldon
2011-Jul-08 15:50 UTC
[R] Using Windows 7 Task Scheduler with R source scripts
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}}
Pfaff, Bernhard Dr.
2011-Jul-08 16:04 UTC
[R] Using Windows 7 Task Scheduler with R source scripts
Hello Dan, I reckon that you need to path a batch-file to the scheduler, i.e. something along the lines R CMD BATCH script.R shall be included in, say, 'RBatchjob.bat' and this file shall then be called by the task scheduler. Best, Bernhard> -----Urspr?ngliche Nachricht----- > Von: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] Im Auftrag von > daniel.egan at barclayswealth.com > Gesendet: Freitag, 8. Juli 2011 16:33 > An: r-help at r-project.org > Betreff: [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 ...{{dropped:21}}