Learn R Programming

checked (version 0.5.0)

task_graph: Build task graph edges

Description

Edges describe relationships between tasks. Often, this is a dependency between packages, requiring that some package be installed before a latter task can be executed.

Usage

task_graph(x, repos = getOption("repos"), ...)

Value

A data.frame that can be used to build igraph::make_graph edges.

Arguments

x

a plan object, containing a list of related steps.

repos

repos, as expected by tools::package_dependencies() to determine package relationships.

...

params passed to helper methods.

Details

tools::package_dependencies() is used to calculate these relationships. However, the package data returned by utils::available.packages(), that is used internally to determine dependencies does not know about local or remote packages, so those are first appended to this data set prior to calculating edges. The bulk of this function serves to join this data.

Examples

Run this code
if (FALSE) {
task_graph(plan_rev_dep_checks("."))
}

Run the code above in your browser using DataLab