Learn R Programming

drake (version 4.2.0)

build_graph: Function build_graph

Description

Make a graph of the dependency structure of your workflow.

Usage

build_graph(plan, targets = drake::possible_targets(plan),
  envir = parent.frame(), verbose = TRUE)

Arguments

plan

workflow plan data frame, same as for function make().

targets

names of targets to bulid, same as for function make().

envir

environment to import from, same as for function make().

verbose

logical, whether to output messages to the console.

Details

This function returns an igraph object representing how the targets in your workflow depend on each other. (help(package = "igraph")). To plot the graph, call to plot.igraph() on your graph, or just use plot_graph() from the start.

See Also

plot_graph

Examples

Run this code
# NOT RUN {
load_basic_example()
g <- build_graph(my_plan)
class(g)
# }

Run the code above in your browser using DataLab