R/outdated.R
Outdated targets will be rebuilt in the next
make()
.
outdated(config = drake::read_drake_config(), make_imports = TRUE)
config | option internal runtime parameter list of
|
---|---|
make_imports | logical, whether to make the imports first.
Set to |
Character vector of the names of outdated targets.
outdated()
is sensitive to the alternative triggers
described at
https://github.com/ropensci/drake/blob/master/vignettes/debug.Rmd#test-with-triggers. # nolint
For example, even if outdated(...)
shows everything up to date,
outdated(..., trigger = "always")
will show
all targets out of date.
You must use a fresh config
argument with an up-to-date
config$targets
element that was never modified by hand.
If needed, rerun drake_config()
early and often.
See the details in the help file for drake_config()
.
missed()
, drake_plan()
,
make()
, vis_drake_graph()
# NOT RUN { test_with_dir("Quarantine side effects.", { load_basic_example() # Get the code with drake_example("basic"). # Recopute the config list early and often to have the # most current information. Do not modify the config list by hand. config <- drake_config(my_plan) outdated(config = config) # Which targets are out of date? config <- make(my_plan) # Run the projects, build the targets. # Now, everything should be up to date (no targets listed). outdated(config = config) # outdated() is sensitive to triggers. # See the "debug" vignette for more on triggers. config$trigger <- "always" outdated(config = config) }) # }