Learn R Programming

pkgndep (version 1.2.0)

pkgndep: Package dependency analysis

Description

Package dependency analysis

Usage

pkgndep(package, load = FALSE, verbose = TRUE, online = TRUE)

Value

A pkgndep object.

Arguments

package

Package name. The value should be 1. a CRAN/Bioconductor package, 2. an installed package, 3. a path of a local package, 4. URL of a GitHub repository.

load

Check which other packages are loaded into R session (directly or indirectly) when loading pkg.

verbose

Whether to show messages.

online

If the value is TRUE, it will directly use the package database file from CRAN/Bioconductor. If the value is FALSE, it uses the cached package database retrieved on 2021-10-28.

Details

The package database for dependency analysis is always directly retrieved from CRAN/Bioconductor.

Examples

Run this code
if (FALSE) {
x = pkgndep("ComplexHeatmap")
}
# The `x` variable generated by `pkgndep()` is already saved in this package.
x = readRDS(system.file("extdata", "ComplexHeatmap_dep.rds", package = "pkgndep"))
x
plot(x)

Run the code above in your browser using DataLab