needs: Resolve dependencies for the running session

needs_sessionR Documentation

Resolve dependencies for the running session

Description

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

Usage

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

needs()

needs(which = "Depends")

ropensci/dependencies documentation built on May 18, 2022, 9:52 a.m.