zpackages                package:base                R Documentation

_L_i_s_t_i_n_g _o_f _P_a_c_k_a_g_e_s

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

     '.packages' returns information about package availability.

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

     .packages(all.available = FALSE, lib.loc = NULL)

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

all.available: logical; if 'TRUE' return a character vector of all
          available packages in 'lib.loc'.

 lib.loc: a character vector describing the location of R library trees
          to search through, or 'NULL'.  The default value of 'NULL'
          corresponds to all libraries currently known.

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

     '.packages()' returns the "base names" of the currently attached
     packages _invisibly_ whereas '.packages(all.available = TRUE)'
     gives (visibly) _all_ packages available in the library location
     path 'lib.loc'. For a package to be regarded as being available it
     must have a 'DESCRIPTION' file containing a valid 'version' field.

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

     A character vector of package "base names", invisible unless
     'all.available = TRUE'.

_A_u_t_h_o_r(_s):

     R core; Guido Masarotto for the 'all.available=TRUE' part of
     '.packages'.

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

     'library', '.libPaths'.

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

     (.packages())               # maybe just "base"
     .packages(all = TRUE)       # return all available as character vector
     require(splines)            # the same
     (.packages())               # "splines", too
     detach("package:splines")

