[R] Batch Mode for Windows

Duncan Mackay mackay at northnet.com.au
Sat Aug 11 00:07:52 CEST 2012


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.



More information about the R-help mailing list