Hi, I have researched batch mode for windows and could not find anything that worked. I know the code should be $ R CMD BATCH inputfile.R outputfile.Rout or R <inputfile.R > outputfile.Rout I tried these without success. I need detailed, step by step instructions on how to do this. I have tried typing C:\R\bin\x64\Rgui.exe before it, but this just opens R. When I tried to do this, it said that $, R, etc. are not recognizable commands. In other instances it said that the arguments R, CMD, and BATCH were ignored. What specifically should I do to make this work? I thought I was supposed to change the directory to the folder where my input file was stored, but this did not work either. -- View this message in context: http://r.789695.n4.nabble.com/Batch-Mode-for-Windows-tp4639977.html Sent from the R help mailing list archive at Nabble.com.
Batch Mode for Windows
4 messages · sharx, Duncan Mackay, Uwe Ligges +1 more
Hi Here is a script I have used sometime ago to do a job i cannot remember what Windows OS it was. the first line is the general form # R CMD BATCH [options] infile [outfile] c:\rw\bin\R CMD BATCH --no-restore --no-save D:/Feh/R/FEH_Index_in.R D:/Feh/R/FEH_Batch.txt the FEH_Batch.txt is the log file for the batch HTH Duncan Duncan Mackay Department of Agronomy and Soil Science University of New England Armidale NSW 2351 Email: home: mackay at northnet.com.au
At 06:59 11/08/2012, you wrote:
Hi, I have researched batch mode for windows and could not find anything that worked. I know the code should be $ R CMD BATCH inputfile.R outputfile.Rout or R <inputfile.R > outputfile.Rout I tried these without success. I need detailed, step by step instructions on how to do this. I have tried typing C:\R\bin\x64\Rgui.exe before it, but this just opens R. When I tried to do this, it said that $, R, etc. are not recognizable commands. In other instances it said that the arguments R, CMD, and BATCH were ignored. What specifically should I do to make this work? I thought I was supposed to change the directory to the folder where my input file was stored, but this did not work either. -- View this message in context: http://r.789695.n4.nabble.com/Batch-Mode-for-Windows-tp4639977.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at 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.
On 10.08.2012 22:59, sharx wrote:
Hi, I have researched batch mode for windows and could not find anything that worked. I know the code should be $ R CMD BATCH inputfile.R outputfile.Rout or R <inputfile.R > outputfile.Rout
Almost right, see below.
I tried these without success. I need detailed, step by step instructions on how to do this. I have tried typing C:\R\bin\x64\Rgui.exe before it, but this just opens R. When I tried to do this, it said that $
$ indicates you shoudl thpy in the OS shell. Do not repeat that one when typing commands.
, R, etc. are not recognizable
In that case, you have not added the directory where R.exe lives to the PATH environment variable. Uwe Ligges
commands. In other instances it said that the arguments R, CMD, and BATCH were ignored. What specifically should I do to make this work? I thought I was supposed to change the directory to the folder where my input file was stored, but this did not work either. -- View this message in context: http://r.789695.n4.nabble.com/Batch-Mode-for-Windows-tp4639977.html Sent from the R help mailing list archive at Nabble.com.
______________________________________________ R-help at 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.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120811/e76302a2/attachment.pl>