Description Usage Arguments Value Author(s) Examples
View source: R/buildDepGraph.R
These functions can be used to represent and manipulate dependency graphs for a specified package repository.
1 2 | buildRepDepGraph(repository, depLevel = c("Depends", "Suggests"))
pkgInstOrder(pkg, repGraph)
|
repository |
A URL to a |
depLevel |
One of |
pkg |
The package to get the installation order for |
repGraph |
A |
For buildRepDepGraph
, a graph representing the dependency
structure of the specified repository, where an edge from node
A
to node B
represents a dependency on B
by A
.
For pkgInstOrder
, a vector is returned, listing the appropriate
order one would take to install all of the necessary packages to
install the specified package. That is, it makes sure that at every
step, any package being installed does not depend on one that has not
yet been installed. This order can then be used with functions such
as install.packages
.
Jeff Gentry
1 2 3 4 | if("FIXME"=="Jeff, we can't assume that we're always online - wh") {
repos <- getOption("repositories")["BIOC"] ## Get BIOC repos
buildRepDepGraph(repos)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.