getInstallOrder: List package dependencies in install order

View source: R/getInstallOrder.R

getInstallOrderR Documentation

List package dependencies in install order

Description

This function uses a dependency graph created with makeDepGraph to list all (recursive) dependencies of a given package in an order suitable for installation.

Usage

getInstallOrder(pkg, depG, needed.only = TRUE)

Arguments

pkg

character string name of package

depG

graphNEL instance as returned from makeDepGraph.

needed.only

logical value. When TRUE, only those dependencies not currently installed are included in the list, this is the default. When FALSE the complete list of dependencies is given regardless of the set of currently installed packages.

Value

a list with components:

packages

character vector of package names in an order suitable for installation. The order is not unique. The names of the character vector are the estimated download sizes of each package.

total.size

When available, the total size in megabytes of all listed dependencies.

Author(s)

Seth Falcon


Bioconductor/pkgDepTools documentation built on Nov. 19, 2022, 1:32 a.m.