missing_deps | R Documentation |
Check whether there are missing dependencies
missing_deps(deps = c("Depends", "Imports", "LinkingTo"), ...)
deps |
character vector of elements from "Depends", "Suggests", "Imports", "Enhances", or "LinkingTo" |
... |
arguments passed to |
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.
Character vector of names of missing packages with and igraph object
as a "graph"
attribute.
cranet::pkgnet()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.