Rhome                  package:base                  R Documentation

_R_e_t_u_r_n _t_h_e _R _H_o_m_e _D_i_r_e_c_t_o_r_y

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

     Return the R home directory.

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

     R.home(component="home")

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

component: As well as '"home"' which gives the R home directory, other
          known values are '"bin"', '"doc"', '"etc"' and '"share"'
          giving the paths to the corresponding parts of an R
          installation.

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

     The R home directory is the top-level directory of the R
     installation being run.

     The R home directory is often referred to as R_HOME, and is the
     value of an environment variable of that name in an R session. It
     can be found outside an R session by 'R RHOME'.

_V_a_l_u_e:

     A character string giving the R home directory or path to a
     particular component.  Normally the components are all
     subdirectories of the R home directory, but this may not be the
     case in a Unix-like installation.

