[R] batch file output
ggrothendieck at gmail.com
Tue Dec 28 14:56:32 CET 2010
On Tue, Dec 28, 2010 at 8:09 AM, Mikkel Grum <mi2kelgrum at yahoo.com> wrote:
> I run a batch file with the following command in Windows XP:
> C:\R\R-2.12.1\bin\Rterm.exe --no-save --no-restore <C:\users\me\file.R> C:\users\me\file.out 2>&1
> Is there any way to get only the output of R in file.out, without getting all the code from file.R too?
> Any help greatly appreciated,
Try Rscript.exe in your R distribution.
Also in the batchfiles distribution, http://batchfiles.googlecode.com,
there is a file #Rscript.bat, that can be used to turn an R script
into a Windows batch file. #Rscript without arguments gives
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
email: ggrothendieck at gmail.com
More information about the R-help