[R] Using Windows 7 Task Scheduler with R source scripts

Pfaff, Bernhard Dr. Bernhard_Pfaff at fra.invesco.com
Fri Jul 8 18:04:50 CEST 2011


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}}



More information about the R-help mailing list