dependentPackages: Dependent packages

View source: R/dependencies.R

dependentPackagesR Documentation

Dependent packages

Description

Finds Package objects for all dependencies of pkgs.

Usage

dependentPackages(...)

Arguments

...

Arguments passed on to gtools::getDependencies

pkgs

character vector of package names

dependencies

character vector of dependency types to include. Choices are "Depends", "Imports", "LinkingTo", "Suggests", and "Enhances". Defaults to c("Depends", "Imports", "LinkingTo").

installed

Logical indicating whether to pull dependency information from installed packages. Defaults to TRUE.

available

Logical indicating whether to pull dependency information from available packages. Defaults to TRUE.

base

Logical indicating whether to include dependencies on base packages that are included in the R installation. Defaults to FALSE.

recommended

Logical indicating whether to include dependencies on recommended packages that are included in the R installation. Defaults to FALSE.

Value

List of Package dependencies.

Examples

## Not run: 
library(R.oo)
methods(class = "Package")
#  [1] as.character        getAuthor           getBundle           getBundlePackages
#  [5] getChangeLog        getClasses          getContents         getContribUrl
#  [9] getDataPath         getDate             getDescription      getDescriptionFile
# [13] getDevelUrl         getDocPath          getEnvironment      getExamplePath
# [17] getHistory          getHowToCite        getLicense          getMaintainer
# [21] getName             getNews             getPath             getPosition
# [25] getTitle            getUrl              getVersion          isLoaded
# [29] isOlderThan         ll                  load                showChangeLog
# [33] showContents        showDescriptionFile showHistory         showHowToCite
# [37] showNews            startupMessage      unload

dependentPackages("dplyr") |> tibble::enframe(value = "package")

## End(Not run)

royratcliffe/canny.tudor documentation built on Oct. 17, 2022, 4:17 a.m.