dependsOnPkgs(pkgs, dependencies = c("Depends", "Imports", "LinkingTo"), recursive = TRUE, lib.loc = NULL, installed = utils::installed.packages(lib.loc, fields = "Enhances"))
pkgs | a character vector to indicate the names of packages to find the reverse dependency package names. |
dependencies | a subset of c("Depends", "Imports", "LinkingTo", "Suggests", "Enhances") or a character string to indicate the dependency fields of installed packages. The character string could be "all" or "most". See details. |
recursive | a logical value. If TRUE (the default), it will find pkgs's reverse dependency package names recursively. Otherwise, only find reverse dependency package names for pkgs. |
lib.loc | a character vector containing the names of package library directories. If NULL, .libPaths() is used. |
installed | a character matrix containing the installed package information. See details. |
library("tools")# to find "tools" reverse dependency package names dependsOnPkgs("tools", recursive = FALSE)
# to find "tools"' reverse dependency package names recursively dependsOnPkgs("tools")
# to find all "tools" reverse dependency package names dependsOnPkgs("tools", dependencies = "all")
# to find most "tools" reverse dependency package names dependsOnPkgs("tools", dependencies = "most")