RweaveLatex              package:utils              R Documentation

_R/_L_a_T_e_X _D_r_i_v_e_r _f_o_r _S_w_e_a_v_e

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

     A driver for 'Sweave' that translates R code chunks in LaTeX
     files.

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

     RweaveLatex()

     RweaveLatexSetup(file, syntax, output = NULL, quiet = FALSE,
                      debug = FALSE, echo = TRUE, eval  =  TRUE,
                      split = FALSE, stylepath = TRUE,
                      pdf = TRUE, eps = TRUE)

_A_r_g_u_m_e_n_t_s:

    file: Name of Sweave source file.

  syntax: An object of class 'SweaveSyntax'.

  output: Name of output file, default is to remove extension '.nw',
          '.Rnw' or '.Snw' and to add extension '.tex'. Any  directory
          names in 'file' are also removed such that the output is
          created in the current working directory.

   quiet: If 'TRUE' all progress messages are suppressed.

   debug: If 'TRUE', input and output of all code chunks is copied to
          the console.

stylepath: If 'TRUE', a hard path to the file 'Sweave.sty' installed
          with this package is set, if 'FALSE', only
          '\usepackage{Sweave}' is written. The hard path makes the TeX
          file less portable, but avoids the problem of installing the
          current version of 'Sweave.sty' to some place in your TeX
          input path. The argument is ignored if a
          '\usepackage{Sweave}' is already present in the Sweave source
          file. 

    echo: set default for option 'echo', see details below.

    eval: set default for option 'eval', see details below.

   split: set default for option 'split', see details below.

     pdf: set default for option 'pdf', see details below.

     eps: set default for option 'eps', see details below.

_S_u_p_p_o_r_t_e_d _O_p_t_i_o_n_s:

     RweaveLatex supports the following options for code chunks (the
     values in parentheses show the default values):

     _e_c_h_o: logical ('TRUE'). Include S code in the output file?

     _e_v_a_l: logical ('TRUE'). If 'FALSE', the code chunk is not
          evaluated, and hence no text or graphical output produced.

     _r_e_s_u_l_t_s: character string ('verbatim'). If 'verbatim', the output
          of S commands is included in the verbatim-like Soutput
          environment. If 'tex', the output is taken to be already
          proper latex markup and included as is. If 'hide' then all
          output is completely suppressed (but the code executed during
          the weave).

     _p_r_i_n_t: logical ('FALSE') If 'TRUE', each expression in the code
          chunk is wrapped into a 'print()' statement before
          evaluation, such that the values of all expressions become
          visible.

     _t_e_r_m: logical ('TRUE'). If 'TRUE', visibility of values emulates
          an interactive R session: values of assignments are not
          printed, values of single objects are printed. If 'FALSE',
          output comes only from explicit 'print' or 'cat' statements.

     _s_p_l_i_t: logical ('FALSE'). If 'TRUE', text output is written to
          separate files  for each code chunk.

     _s_t_r_i_p._w_h_i_t_e: character string ('false'). If 'true', blank lines at
          the beginning and end of output are removed. If 'all', then
          all blank lines are removed from the output.

     _p_r_e_f_i_x: logical ('TRUE'). If 'TRUE' generated filenames of figures
          and output have a common prefix.

     _p_r_e_f_i_x._s_t_r_i_n_g: a character string, default is the name of the
          '.Snw' source file.

     _i_n_c_l_u_d_e: logical ('TRUE'), indicating whether input statements for
          text output and includegraphics statements for figures should
          be auto-generated. Use 'include = FALSE' if the output should
          appear in a different place than the code chunk (by placing
          the input line manually).

     _f_i_g: logical ('FALSE'), indicating whether the code chunk produces
           graphical output. Note that only one figure per code chunk
          can be processed this way.

     _e_p_s: logical ('TRUE'), indicating whether EPS figures shall be
          generated. Ignored if 'fig = FALSE'. 

     _p_d_f: logical ('TRUE'), indicating whether PDF figures shall be
          generated. Ignored if 'fig = FALSE'.

     _w_i_d_t_h: numeric (6), width of figures in inch.

     _h_e_i_g_h_t: numeric (6), height of figures in inch.

_A_u_t_h_o_r(_s):

     Friedrich Leisch

_R_e_f_e_r_e_n_c_e_s:

     Friedrich Leisch: Sweave User Manual, 2002
      <URL: http://www.ci.tuwien.ac.at/~leisch/Sweave>

_S_e_e _A_l_s_o:

     'Sweave', 'Rtangle'

