Skip to content

Create BATCH file

3 messages · R_Antony, Suzen, Mehmet, FJ M

#
Hi,

I have a ".R" file written many functions into that. My requirement what is,
i need  to create a batch file for this.
No idea, how to create it. Tried it many other ways, but no result !. 
Could anyone please help me out ?

Thanks.
Antony.




--
View this message in context: http://r.789695.n4.nabble.com/Create-BATCH-file-tp4650277.html
Sent from the R help mailing list archive at Nabble.com.
#
Try this:
http://stat.ethz.ch/R-manual/R-patched/library/utils/html/BATCH.html
On Wed, Nov 21, 2012 at 11:58 AM, R_Antony <antony.akkara at ge.com> wrote:
#
"C:\Program Files\R\R-2.15.1\bin\x64\R.exe" CMD BATCH    "C:\Users\Frank\Documents\R\Projects\Current_Yield\Divs.txt" "C:\Users\Frank\Documents\R\Projects\Current_Yield\Divs.out"
Divs.txt contains my R code and the output goes to Divs.out. I always check Divs.out first.
If you want to write objects to divs.out, I seem to need to use the print command, not just have the object name:
ndivs<-nrow(Divs)
print(ndivs)
Divs_Per_Year<-4
print(Divs_Per_Year)
Let me know if you have any questions.
Thanks, 
Frank

----------------------------------------