\Header{BATCH}{Batch Execution of R}
\begin{Usage}
\begin{verbatim}R BATCH [options] infile [outfile]\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{infile}] the name of a file with R code to be executed.
\item[\texttt{options}] a list of R command line options, e.g., for setting the
amount of memory available and controlling the load/save process.
If \texttt{infile} starts with a `-', use \texttt{--} as the final 
option.
\item[\texttt{outfile}] the name of a file to which to write output.  If not given,
the name used is the one of \texttt{infile}, with a possible `.R'
extension stripped, and `.Rout' appended.
\end{ldescription}
\end{Arguments}
\begin{Description}
Run R non-interactively with input from \texttt{infile} and
place output (stdout/stderr) to another file.\end{Description}
\begin{Details}
By default, the input commands are printed along with the
output.  To suppress this behavior, add \texttt{options(echo = FALSE)}
at the beginning of \texttt{infile}.\end{Details}

