parent_dependency: Get parent dependency for a package

View source: R/dependency.R

parent_dependencyR Documentation

Get parent dependency for a package

Description

Get parent dependency for a package

Usage

parent_dependency(package, fields = NULL, online = FALSE)

Arguments

package

Package name.

fields

Which fields in DESCRIPTION? Values should be in Depends, Imports, LinkingTo, Suggests and Enhances. The value can also be set to strong or weak.

online

Whether use the newest package database directly from CRAN/Bioconductor or the pre-computated package database? The version of the pre-computated package database can be set via pkgndep_opt$heaviness_db_version.

Value

A data frame with parent packages as well as their heaviness on pacakge. If snapshot is set to FALSE, heaviness on child packages is set to NA.

Examples

## Not run: 
parent_dependency("ComplexHeatmap")

## End(Not run)

jokergoo/pkgndep documentation built on Aug. 15, 2023, 4:13 a.m.