# NOT RUN {
isolate_example("Quarantine side effects.", {
if (suppressWarnings(require("knitr"))) {
load_mtcars_example() # Get the code with drake_example("mtcars").
config <- drake_config(my_plan)
# Plot the network graph representation of the workflow.
pkg <- requireNamespace("txtplot", quietly = TRUE) &&
requireNamespace("visNetwork", quietly = TRUE)
if (pkg) {
text_drake_graph(config)
make(my_plan) # Run the project, build the targets.
text_drake_graph(config) # The black nodes from before are now green.
}
}
})
# }
Run the code above in your browser using DataLab