getInstallOrder: List package dependencies in install order

Description Usage Arguments Value Author(s)

View source: R/getInstallOrder.R

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

1
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


pkgDepTools documentation built on Nov. 8, 2020, 5:24 p.m.