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 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 valid metadata (and hence be an installed package). _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.available = TRUE) # return all available as character vector require(splines) (.packages()) # "splines", too detach("package:splines")