dependsOnPkgs             package:tools             R Documentation

_F_i_n_d _R_e_v_e_r_s_e _D_e_p_e_n_d_e_n_c_i_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Find 'reverse' dependencies of packages, that is those packages
     which depend on this one, and (optionally) so on recursively.

_U_s_a_g_e:

     dependsOnPkgs(pkgs, dependencies = c("Depends", "Imports"),
                   recursive = TRUE, lib.loc = NULL,
                   installed = installed.packages(lib.loc, fields = "Enhances"))

_A_r_g_u_m_e_n_t_s:

    pkgs: a character vector of package names.

dependencies: a character vector listing the types of dependencies, a
          subset of 'c("Depends", "Imports", "Suggests", "Enhances")'.

recursive: logical: should reverse dependencies of reverse dependencies
          (and so on) be included?

 lib.loc: a character vector of R library trees, or 'NULL' for all
          known trees (see '.libPaths').

installed: a result of calling 'installed.packages'.

_V_a_l_u_e:

     A character vector of package names, which does not include any
     from 'pkgs'.

_E_x_a_m_p_l_e_s:

     ## there are few dependencies in a vanilla R installation
     dependsOnPkgs("lattice")

