

BATCH {base}                                 R Documentation

_B_a_t_c_h _E_x_e_c_u_t_i_o_n _o_f _R

_D_e_s_c_r_i_p_t_i_o_n_:

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

_U_s_a_g_e_:

     R BATCH [options] infile [outfile]

_A_r_g_u_m_e_n_t_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_e_t_a_i_l_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_o_t_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.

