build_graph: Function build_graph
Description
Make a graph of the dependency structure of your workplan.
Usage
build_graph(plan = workplan(), targets = drake::possible_targets(plan),
envir = parent.frame(), verbose = TRUE, jobs = 1)
Arguments
plan
workflow plan data frame, same as for function
make()
.
targets
names of targets to build, same as for function
make()
.
envir
environment to import from, same as for function
make()
.
verbose
logical, whether to output messages to the console.
jobs
number of jobs to accelerate the construction
of the dependency graph. A light mclapply
-based
parallelism is used if your operating system is not Windows.
Details
This function returns an igraph object representing how
the targets in your workplan 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.
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