The R Project SVN R

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
27445 ripley 1
\name{BATCH}
2
\alias{BATCH}
3
\title{Batch Execution of R}
4
\description{Run \R non-interactively with input from \code{infile} and
5
  send output (stdout/stderr) to another file.}
6
\usage{Rcmd BATCH [options] infile [outfile]}
7
\arguments{
8
  \item{infile}{the name of a file with \R code to be executed.}
9
  \item{options}{a list of \R command line options, e.g., for setting the
10
    amount of memory available and controlling the load/save process.
11
    If \code{infile} starts with a \samp{-}, use \samp{--} as the final
12
    option.  The default options are \samp{--restore --save}.}
13
  \item{outfile}{the name of a file to which to write output.  If not
14
    given, the name used is that of \code{infile}, with a possible
15
    \file{.R} extension stripped, and \file{.Rout} appended.}
16
}
17
\details{
18
  Use \code{Rcmd BATCH --help} to be reminded of the usage.
19
 
20
  By default, the input commands are printed along with the output.  To
21
  suppress this behavior, add \code{options(echo = FALSE)} at the
22
  beginning of \code{infile}.
23
 
24
  Files with an incomplete last line (no end of line mark) are now
25
  accepted.
26
}
27
\keyword{utilities}
28