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.

     '_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.

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

     '_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__E_N_V_I_R_O_N': Optional.  The path to the site environment file: see
          Startup.

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

     '_R__H_I_S_T_F_I_L_E': Optional.  The path of the history file: see
          Startup.

     '_R__H_I_S_T_S_I_Z_E': Optional.  The maximum size of the history file, in
          lines.

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

     '_R__L_I_B_S': Optional.  Setting for '.libPaths'.

     '_R__L_I_B_S__S_I_T_E': Optional.  Setting for '.libPaths'.

     '_R__L_I_B_S__U_S_E_R': Optional.  Setting for '.libPaths'.

     '_R__P_A_P_E_R_S_I_Z_E': Optional.  The default papersize, e.g. for 'pdf'
          and 'postscript'.

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

     '_R__R_D_4_D_V_I': Options for 'latex' processing of 'Rd' files.

     '_R__R_D_4_P_D_F': Options for 'pdflatex' processing of 'Rd' files.

     '_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 'as.POSIXlt' for the
          system-specific formats.

     '_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'.

_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 default editor.

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

     '_R__B_R_O_W_S_E_R': The path to default browser.

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

     '_R__D_V_I_P_S_C_M_D': The path to 'dvips'.

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

     '_R__L_A_T_E_X_C_M_D': The path to 'latex'.

     '_R__M_A_K_E_I_N_D_E_X_C_M_D': The path to 'makeindex'.

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

     '_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_I_N_T_C_M_D': Print command to be used by 'postscript'.

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

     '_R__U_N_Z_I_P_C_M_D': The path to 'unzip'.

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

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

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

