Required dependency packages

required_dependency_packages(x, all = FALSE)

Arguments

x

An object from pkgndep.

all

Whether to include the packages required if also including packages from "Suggests"/"Enhances" field.

Details

The function returns all upstream packages.

Value

A vector of package names.

Examples

# \dontrun{
x = readRDS(system.file("extdata", "ComplexHeatmap_dep.rds", package = "pkgndep"))
required_dependency_packages(x)
#>  [1] "grDevices"     "graphics"      "grid"          "stats"        
#>  [5] "methods"       "RColorBrewer"  "png"           "matrixStats"  
#>  [9] "digest"        "foreach"       "colorspace"    "GlobalOptions"
#> [13] "clue"          "doParallel"    "GetoptLong"    "IRanges"      
#> [17] "circlize"      "utils"         "tools"         "crayon"       
#> [21] "codetools"     "iterators"     "BiocGenerics"  "S4Vectors"    
#> [25] "stats4"        "cluster"       "parallel"      "compiler"     
#> [29] "rjson"         "shape"        
# }