BATCH                  package: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 a given file and place
     output (stdout/stderr) to another file.

_U_s_a_g_e:

     R CMD 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 setting the
          amount of memory available and controlling 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'.

     The 'infile' can have end of line marked by LF or CRLF (but not
     just CR), and files with a missing EOL mark are processed
     correctly.

     Using 'R CMD BATCH' sets the GUI to '"none"', so none of 'x11',
     'jpeg' and 'png' are available.

_N_o_t_e:

     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.

