needs: Resolve dependencies for the running session

Description Usage Arguments Details Value Author(s) Examples

Description

Resolves the dependent packages required to reproduced the current R session, for an installed R package, or a package source tree/tarball.

Usage

1
2
3
4
5
6
needs_session(which = c("Depends", "Imports", "LinkingTo"))

needs(pkg, which = c("Depends", "Imports", "LinkingTo"))

## S3 method for class 'needs'
print(x, ...)

Arguments

pkg

character; a package name (currently ignored).

which

logical; what dependencies should be looked for. See argument of same name in packageDescription.

x

an R object of class needs.

...

additional arguments passes to print.

Details

TODO

Value

A list of class "needs" with five components

basePkgs

a character vector of the base R packages (including recommended ones) dependencies

depends

a data frame of packages depended upon, i.e. loaded and attached.

imports

a data frame of packages imported, i.e. those packages whose namespaces have been loaded.

other

a data frame of additional dependencies, arising from a recursive search of the dependencies of packages listed in the depends and imports components.

r

R version info, currentl as returned by R.Version.

Author(s)

Gavin L. Simpson \

Examples

1
2
3
needs()

needs(which = "Depends")

ropensci/dependencies documentation built on May 27, 2019, 2:26 p.m.