Re: [R] Problem in using BATCH command

2011-10-17 Thread hbabai
Hi Every one, I have been struggling with a problem and need your help. I would like to automate execution of a .R file. Therefore i thought of creating a batch file. It reads @echo off start /d C:\Program Files\R\R-2.13.1\bin\x64 R BATCH Model.R No success with running it. The command prompt

Re: [R] Problem in using BATCH command

2011-10-17 Thread Duncan Mackay
Hi Hami This is what I use when I have run a file using the BATCH command for windows XP D:\rw\bin\R CMD BATCH --no-restore --no-save Rfile.R Rfile_log.txt where D:\rw\bin\R is your R exe file name and path Rfile.R is the R file your are sourcing Rfile_log.txt is the log file - handy if

[R] Problem in using BATCH command

2009-09-22 Thread Manuj Sharma
I tried to use BATCH command to run an input file (a simple text file) which contained a few R commands. I first saw the BATCH help page using ?BATCH The help page mentioned the Usage as: Batch Execution of RR CMD BATCH [options] infile [outfile] The Detailed section mentioned the

Re: [R] Problem in using BATCH command

2009-09-22 Thread Henrik Bengtsson
You probably want to use the source() command in R. R CMD BATCH is used from the command line - it's rare that people use it (unless they really know what they are doing). /Henrik On Tue, Sep 22, 2009 at 9:01 AM, Manuj Sharma smanuj1...@yahoo.in wrote: I tried to use BATCH command to run an

Re: [R] Problem in using BATCH command

2009-09-22 Thread Yihui Xie
BATCH is not an R object, and it is not for use in R console. As Henrik mentioned, you should use it in the command line. Open a terminal window/command window (depending on your OS), and type R CMD BATCH ... there. If you are using Windows, cd to the 'bin' directory of R first (or put the 'bin'