pkgndep: Number of Dependency Packages

Description Usage Arguments Details Value Examples

View source: R/pkgndep.R

Description

Number of Dependency Packages

Usage

1
pkgndep(pkg, verbose = TRUE)

Arguments

pkg

Package name or the path of the package.

verbose

Whether print messages.

Details

For each package listed in the "Depends", "Imports" and "Suggests" fields in the DESCRIPTION file, this function opens a new R session, loads the package and counts the number of namespaces that are loaded.

Value

A pkgndep object.

Examples

1
2
3
4
5
6
x = pkgndep("ComplexHeatmap")

# The `x` variable generated by `pkgndep()` is already saved in this package.
x = readRDS(system.file("extdata", "x.rds", package = "pkgndep"))
x
plot(x)

pkgndep documentation built on March 5, 2021, 5:06 p.m.