packageDependencies: Dependency resolution for installed packages

packageDependenciesR Documentation

Dependency resolution for installed packages

Description

Utility function to capture

Usage

packageDependencies(pkg, recursive = TRUE, local = TRUE, reduce = TRUE,
  lib.loc = NULL, which = c("Depends", "Imports", "Suggests"))

getDependencyMatrix(pkg, instPkgs, local = TRUE, which)

getRemoteDependencies(pkg, contriburl = getOption("repos"), which)

Arguments

pkg

character; a package name.

recursive

logical; include indirect dependencies?

local

logical; look locally to resolve dependencies, not online?

reduce

logical; collapse dependencies to a minimum required version should different minimum versions of the same packge be resolved as dependencies of pkg.

lib.loc

Which package libraries to use when searching for installed packages. The default NULL uses all libraries in .libPaths().

which

character; the level of dependencies to return. Not sure where these levels are defined..?

instPkgs

A matrix specifying all packages installed locally, as returned by installed.packages.

contriburl

URLs for the contrib sections of CRAN, or CRAN-like repositories. The default is to take this from the repos option.

Details

TO DO

Value

TODO

Author(s)

Gavin L. Simpson based almost completely on tools::pkgDepends, tools:::getDepMtrx, and tools:::getRemotePkgDepends in R.


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