On Tue, Dec 28, 2010 at 8:09 AM, Mikkel Grum <mi2kelg...@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,
> Mikkel

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
instructions.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com

______________________________________________
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.

Reply via email to