cancel {drake} | R Documentation |
Cancel a target mid-build
Description
Cancel a target mid-build.
Upon cancellation, drake
halts the current target and moves to the
next one. The target's previous value and metadata, if they exist,
remain in the cache.
Usage
cancel(allow_missing = TRUE)
Arguments
allow_missing |
Logical. If |
Value
Nothing.
See Also
cancel_if
Examples
## Not run:
isolate_example("cancel()", {
f <- function(x) {
cancel()
Sys.sleep(2) # Does not run.
}
g <- function(x) f(x)
plan <- drake_plan(y = g(1))
make(plan)
# Does not exist.
# readd(y)
})
## End(Not run)
[Package drake version 7.13.10 Index]