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-boun...@r-project.org > [mailto:r-help-boun...@r-project.org] Im Auftrag von > daniel.e...@barclayswealth.com > Gesendet: Freitag, 8. Juli 2011 16:33 > An: r-help@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}} ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.