getDepList               package:tools               R Documentation

_F_u_n_c_t_i_o_n_s _t_o _r_e_t_r_i_e_v_e _d_e_p_e_n_d_e_n_c_y _i_n_f_o_r_m_a_t_i_o_n

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

     Given a dependency matrix, will create a 'DependsList' object for
     that package which will include the dependencies for that matrix,
     which ones are installed, which unresolved dependencies were found
     online, which unresolved dependencies were not found online, and
     any R dependencies.

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

     getDepList(depMtrx, instPkgs, recursive=TRUE, local=TRUE, reduce=TRUE,
                lib.loc=NULL)
     pkgDepends(pkg, recursive = TRUE, local = TRUE, reduce = TRUE, lib.loc=NULL)

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

 depMtrx: A dependency matrix as from 'package.dependencies'

     pkg: The name of the package

instPkgs: A matrix specifying all packages installed on the local
          system, as from 'installed.packages'

recursive: Whether or not to include indirect dependencies

   local: Whether or not to search only locally

  reduce: Whether or not to collapse all sets of dependencies to a
          minimal value

 lib.loc: What libraries to use when looking for installed packages. 
          'NULL' indicates all library directories in the user's
          '.libPaths()'.

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

     The function 'pkgDepends' is a convenience function which wraps
     'getDepList' and takes as input a package name.  It will then
     query 'installed.packages' and also generate a dependency matrix,
     calling 'getDepList' with this information and returning the
     result.

     These functions will retrieve information about the dependencies
     of the matrix, resulting in a 'DependsList' object.  This is a
     list with four elements:

     _D_e_p_e_n_d_s A vector of the dependencies for this package.

     _I_n_s_t_a_l_l_e_d A vector of the dependencies which have been satisfied
          by the currently installed packages.

     _F_o_u_n_d A list representing the dependencies which are not in
          'Installed' but were found online.  This list has element
          names which are the URLs for the repositories in which
          packages were found and the elements themselves are vectors
          of package names which were found in the respective
          repositories.  If 'local=TRUE', the 'Found' element will
          always be empty.

     _R Any R version dependencies.

     If 'recursive' is 'TRUE', any package that is specified as a
     dependency will in turn have its dependencies included (and so
     on), these are known as indirect dependencies.  If 'recursive' is 
     'FALSE', only the dependencies directly stated by the package will
      be used.

     If 'local' is 'TRUE', the system will only look at the user's
     local install and not online to find unresolved dependencies.

     If 'reduce' is 'TRUE', the system will collapse the fields in the
     'DependsList' object such that a minimal set of dependencies are
     specified (for instance if there was ('foo', 'foo (>= 1.0.0)',
     'foo (>= 1.3.0)'), it would only return 'foo (>= 1.3.0)').

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

     An object of class 'DependsList'

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

     Jeff Gentry

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

     'installFoundDepends'

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

     pkgDepends("tools", local = FALSE)

