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 things go wrong.
See one of the manuals I cannot remember which one - it is too late
for me to remember or look it up
HTH
Regards
Duncan
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email Home: mac...@northnet.com.au
At 12:22 17/10/2011, you wrote:
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 flashes in and out. But I do
not see results. (there is a plot command which is for testing the
execution).
Anyone is able to give me some advice on this.
Worse than that I am not even able to get the command R BATCH Model.R to
work in command prompt. I get the error "unable to open output file".
Thanks
Hami
--
View this message in context:
http://r.789695.n4.nabble.com/Problem-in-using-BATCH-command-tp902496p3910875.html
Sent from the R help mailing list archive at Nabble.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.
______________________________________________
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.