
Last chance! 50% off unlimited learning
Sale ends in
igraph
dependency network of your project.This function returns an igraph object representing how
the targets in your workflow plan data frame
depend on each other.
(help(package = "igraph")
). To plot the graph, call
to plot.igraph()
on your graph, or just use
vis_drake_graph()
from the start.
build_drake_graph(plan = drake_plan(),
targets = drake::possible_targets(plan), envir = parent.frame(),
verbose = 1, jobs = 1)
workflow plan data frame, same as for function
make()
.
names of targets to build, same as for function
make()
.
environment to import from, same as for function
make()
.
logical, whether to output messages to the console.
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.
An igraph object representing the workflow plan dependency network.
# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_basic_example() # Get the code with drake_example("basic").
# Make the igraph network connecting all the targets and imports.
g <- build_drake_graph(my_plan)
class(g) # "igraph"
})
# }
Run the code above in your browser using DataLab