EnvVar                 package:base                 R Documentation

_E_n_v_i_r_o_n_m_e_n_t _V_a_r_i_a_b_l_e_s

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

     Details of some of the environment variables which affect an R
     session.

_D_e_t_a_i_l_s:

     It is impossible to list all the environment variables which can
     affect an R session: some affect the OS system functions which R
     uses, and others will affect add-on packages.  But here are notes
     on some of the more important ones.  Those that set the defaults
     for options are consulted only at startup (as are some of the
     others).

     '_H_O_M_E': The user's 'home' directory.

     '_L_A_N_G_U_A_G_E': Optional.  The language(s) to be used for message
          translations.  This is consulted when needed.

     '_L_C__A_L_L': (etc) Optional.  Use to set various aspects of the
          locale - see 'Sys.getlocale'.  Consulted at startup.

     '_R__B_A_T_C_H': Optional - set in a batch session.

     '_R__C_O_M_P_L_E_T_I_O_N': Optional.  If set to 'FALSE', comand-line
          completion is not used.  (Not used by Mac OS GUI.)

     '_R__D_E_F_A_U_L_T__P_A_C_K_A_G_E_S': A comma-separated list of packages which are
          to be loaded in every session.  See 'options'.

     '_R__D_O_C__D_I_R': The location of the R 'doc' directory.  Set by R.

     '_R__D_V_I_P_S_C_M_D': The path to 'dvips'.  Defaults to the value of
          'DVIPS', and if that is unset to a value determined when R
          was built. Used by 'R CMD Rd2dvi', and at startup to set the
          default for 'options("latexcmd")', used by 'help(offline =
          TRUE'.

     '_R__E_N_V_I_R_O_N': Optional.  The path to the site environment file: see
          Startup.  Consulted at startup.

     '_R__G_S_C_M_D': Optional.  The path to GhostScript, used by
          'dev2bitmap'.

     '_R__H_I_S_T_F_I_L_E': Optional.  The path of the history file: see
          Startup.  Consulted at startup and when the history is saved.

     '_R__H_I_S_T_S_I_Z_E': Optional.  The maximum size of the history file, in
          lines.  Exactly how this is used depends on the interface.
          For the 'readline' command-line interface it takes effect
          when the history is saved (by 'savehistory' or at the end of
          a session).

     '_R__H_O_M_E': The top-level directory of the R installation: see
          'R.home'.  Set by R.

     '_R__I_N_C_L_U_D_E__D_I_R': The location of the R 'include' directory.  Set
          by R.

     '_R__L_A_T_E_X_C_M_D': The path to 'latex'. Defaults to the value of
          'LATEX', and if that is unset to a value determined when R
          was built. Used by 'R CMD Rd2dvi', and at startup to set the
          default for 'options("latexcmd")', used by 'help(offline =
          TRUE'.

     '_R__L_I_B_S': Optional.  Used for initial setting of '.libPaths'.

     '_R__L_I_B_S__S_I_T_E': Optional.  Used for initial setting of '.libPaths'.

     '_R__L_I_B_S__U_S_E_R': Optional.  Used for initial setting of '.libPaths'.

     '_R__M_A_K_E_I_N_D_E_X_C_M_D': The path to 'makeindex'.  Defaults at startup to
          the value of 'MAKEINDEX', and if that is unset to a value
          determined when R was built.  Used by 'R CMD Rd2dvi'.

     '_R__P_A_P_E_R_S_I_Z_E': Optional.  Use to set the default for
          'options("papersize")', e.g. used by 'pdf', 'postscript' and
          'help(offline = TRUE)'.

     '_R__P_D_F_L_A_T_E_X_C_M_D': The path to 'pdflatex'.  Defaults at startup to
          the value of 'PDFLATEX', and if that is unset to a value
          determined when R was built.  Used by 'R CMD Rd2dvi'.

     '_R__P_D_F_V_I_E_W_E_R': The path to the default PDF viewer.  Used by 'R CMD
          Rd2dvi'.

     '_R__P_L_A_T_F_O_R_M': The platform - a string of the form 'cpu-vendor-os',
          see 'R.Version'.

     '_R__P_R_O_F_I_L_E': Optional.  The path to the site profile file: see
          Startup.  Consulted at startup.

     '_R__R_D_4_D_V_I': Options for 'latex' processing of 'Rd' files.  Used by
          'R CMD Rd2dvi' and 'help(offline = TRUE)'.

     '_R__R_D_4_P_D_F': Options for 'pdflatex' processing of 'Rd' files.  Used
          by 'R CMD Rd2dvi'.

     '_R__S_H_A_R_E__D_I_R': The location of the R 'share' directory.  Set by R. 

     '_R__U_N_Z_I_P_C_M_D': The path to 'unzip'.  Sets the default value for
          'options("unzip")'.

     '_R__Z_I_P_C_M_D': The path to 'zip'.

     '_T_M_P_D_I_R', '_T_M_P', '_T_E_M_P': Consulted (in that order) when setting
          the temporary directory.  See 'tempdir'.

     '_T_Z': Optional. The current timezone.  See 'Sys.timezone' for the
          system-specific formats.  Consulted as needed.

     '_n_o__p_r_o_x_y', '_h_t_t_p__p_r_o_x_y', '_f_t_p__p_r_o_x_y': (and more).  Optional. 
          Settings for 'download.file': see its help for further
          details.

_U_n_i_x-_s_p_e_c_i_f_i_c:

     Some variables set on Unix-alikes, and not (in general) on
     Windows.

     '_D_I_S_P_L_A_Y': Optional: used by 'X11', Tk (in package 'tcltk'), the
          data editor and various packages.

     '_E_D_I_T_O_R': The path to the default editor.

     '_P_A_G_E_R': The path to the default pager.

     '_R__B_R_O_W_S_E_R': The path to the default browser.  Used to set the
          default value of 'options("browser")'.

     '_R__P_D_F_V_I_E_W_E_R': The path to the default PDF viewer.  Used by 'R CMD
          Rd2dvi'.

     '_R__P_R_I_N_T_C_M_D': Sets the default for 'options("printcmd")', which
          sets the default print command to be used by 'postscript'.

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

     'Sys.getenv' and 'Sys.setenv' to read and set environmental
     variables in an R session.

