libPaths                package:base                R Documentation

_S_e_a_r_c_h _P_a_t_h_s _f_o_r _P_a_c_k_a_g_e_s

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

     '.libPaths' gets/sets the library trees within which packages are
     looked for.

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

     .libPaths(new)

     .Library

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

     new: a character vector with the locations of R library trees.

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

     '.Library' is a character string giving the location of the
     default library, the 'library' subdirectory of 'R_HOME'.

     '.libPaths' is used for getting or setting the library trees that
     R knows about (and hence uses when looking for packages).  If
     called with argument 'new', the library search path is set to the
     existing files in 'unique(new, .Library)' and this is returned. 
     If given no argument, a character vector with the currently known
     library trees is returned.

     The library search path is initialized at startup from the
     environment variable 'R_LIBS' (which should be a colon-separated
     list of directories at which R library trees are rooted) by
     calling '.libPaths' with the directories specified in 'R_LIBS'.

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

     A character vector of file paths.

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

     Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) _The New S
     Language_. Wadsworth & Brooks/Cole.

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

     'library'

_E_x_a_m_p_l_e_s:

     .libPaths()                 # all library trees R knows about

