buildRepDepGraph {graph}R Documentation

Functionality to manage repository dependency graphs

Description

These functions can be used to represent and manipulate dependency graphs for a specified package repository.

Usage

buildRepDepGraph(repository, depLevel = c("Depends", "Suggests"))
pkgInstOrder(pkg, repGraph)

Arguments

repository A URL to a CRAN style repository
depLevel One of Depends or Suggests, detailing the level of dependencies to search. The Suggests value includes everything in Depends.
pkg The package to get the installation order for
repGraph A graph object representing a repository, as from buildRepDepGraph

Value

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.

Author(s)

Jeff Gentry

Examples

   if("FIXME"=="Jeff, we can't assume that we're always online - wh") {
       repos <- getOption("repositories")["BIOC"] ## Get BIOC repos
       buildRepDepGraph(repos)
   }

[Package graph version 1.8.0 Index]