
Last chance! 50% off unlimited learning
Sale ends in
build_graph
Make a graph of the dependency structure of your workflow.
build_graph(plan, targets = drake::possible_targets(plan),
envir = parent.frame(), verbose = TRUE)
workflow plan data frame, same as for function
make()
.
names of targets to bulid, same as for function
make()
.
environment to import from, same as for function
make()
.
logical, whether to output messages to the console.
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.
# NOT RUN {
load_basic_example()
g <- build_graph(my_plan)
class(g)
# }
Run the code above in your browser using DataLab