missing_deps: Check whether there are missing dependencies

View source: R/missing_deps.R

missing_depsR Documentation

Check whether there are missing dependencies

Description

Check whether there are missing dependencies

Usage

missing_deps(deps = c("Depends", "Imports", "LinkingTo"), ...)

Arguments

deps

character vector of elements from "Depends", "Suggests", "Imports", "Enhances", or "LinkingTo"

...

arguments passed to cranet::pkgnet()

Details

First installed.packages() is called to get a matrix of all the installed packages. One can use ... to pass e.g. lib.loc to installed.packages() to restrict attention to selected library tree. Obtained output is passed to cranet::pkgnet() to build the dependency graph. Use deps argument to control what kind of dependency relations are to be used. By default only "hard" dependencies are looked at. Finally the function compares the packages in the graph to the list of installed packages. Any packages present in the first but absent in the second should be installed but are not. The vector of names of these is returned.

Value

Character vector of names of missing packages with and igraph object as a "graph" attribute.

See Also

cranet::pkgnet()


mbojan/mbtools documentation built on Oct. 16, 2023, 8:18 p.m.