| BATCH {base} | R Documentation |
Run R non-interactively with input from infile and
send output (stdout/stderr) to another file.
R CMD BATCH [options] infile [outfile]
Use R CMD BATCH --help to be reminded of the usage.
By default, the input commands are printed along with the output. To
suppress this behavior, add options(echo = FALSE) at the
beginning of infile.
The infile can have end of line marked by LF or CRLF (but not
just CR), and files with an incomplete last line (missing end of line
(EOL) mark) are processed correctly.
Using R CMD BATCH sets the GUI to "none", so none of
x11, jpeg and png are available.
Unlike Splus BATCH, this does not run the R process in the
background. In most shells,
R CMD BATCH [options] infile [outfile] &
will do so.
Report bugs to r-bugs@r-project.org.