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

