# NOT RUN {
test_with_dir("Quarantine side effects.", {
load_basic_example() # Get the code with drake_example("basic").
config <- drake_config(my_plan) # Get a configuration list.
# Parallel stages for the next make().
parallel_stages(config = config)
# Check the graph to see that the information agrees.
vis_drake_graph(config = config)
# Build the project.
config <- make_with_config(config) # or make(my_plan)
# Nothing to build in the next make().
parallel_stages(config = config)
# Change a dependency and notice how the stages change.
reg2 = function(d){
d$x3 = d$x^3
lm(y ~ x3, data = d)
}
parallel_stages(config = config)
})
# }
Run the code above in your browser using DataLab