# NOT RUN {
test_with_dir("Quarantine side effects.", {
# With drake 4.3.0:
load_mtcars_example() # Get the code with drake_example("mtcars").
make(my_plan) # Run the old project.
# Now, install drake >= 5.0.0
load_mtcars_example() # Get the code with drake_example("mtcars").
make(my_plan) # Error: cache is not back compatible.
# Convert the project's '.drake/' cache to the new format.
migrate_drake_project()
make(my_plan) # Everything is still up to date!
# Outdated objects from before migration
# should remain out of date afterwards.
config <- drake_config(my_plan)
outdated(config)
})
# }
Run the code above in your browser using DataLab