I have the following in a batch file "TLT.BAT":
 
"C:\Program Files\R\R-2.13.2\bin\x64\R.exe" CMD BATCH    
"C:\Users\Frank\Documents\R\Scripts\TLT_2012.txt" 
"C:\Users\Frank\Documents\R\Scripts\TLT_2012.out"
PAUSE 
 
The TLT_2012.txt has my R code in it. The TLT_2012.out has the output from R. 
Look to TLT_2012.out for problems with your batch file.
 
Frank
Chicago, IL
 

> Date: Wed, 4 Jul 2012 05:44:01 -0700
> From: [email protected]
> To: [email protected]
> Subject: [R] MS-DOS & script R
> 
> Hi,
> I would like to run R with a script from MS-DOS.
> R is in "My Documents "and my script too.
> How to do?
> 
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/MS-DOS-script-R-tp4635398.html
> Sent from the R help mailing list archive at Nabble.com.
> 
> ______________________________________________
> [email protected] 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.
                                          
        [[alternative HTML version deleted]]

______________________________________________
[email protected] 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