

   BATCH {base}                                 R Documentation

   BBaattcchh EExxeeccuuttiioonn ooff RR

   DDeessccrriippttiioonn::

        Run R non-interactively with input from `infile' and
        place output (stdout/stderr) to another file.

   UUssaaggee::

        R BATCH [options] infile [outfile]

   AArrgguummeennttss::

     infile: the name of a file with R code to be executed.

    options: a list of R command line options, e.g., for set-
             ting the amount of memory available and control-
             ling the load/save process.  If `infile' starts
             with a `-', use `--' as the final option.

    outfile: the name of a file to which to write output.  If
             not given, the name used is the one of `infile',
             with a possible `.R' extension stripped, and
             `.Rout' appended.

   DDeettaaiillss::

        By default, the input commands are printed along with
        the output.  To suppress this behavior, add
        `options(echo = FALSE)' at the beginning of `infile'.

   NNoottee::

        Unlike `Splus BATCH', this does not run the R process
        in the background. In most shells `R BATCH [options]
        infile [outfile]      ' will do so.

