drake_failed | R Documentation |
List the targets that quit in error during make()
.
drake_failed(cache = drake::drake_cache(path = path), path = NULL)
cache |
drake cache. See |
path |
Path to a |
A character vector of target names.
drake_done()
, drake_running()
, drake_cancelled()
,
drake_progress()
, make()
## Not run:
isolate_example("contain side effects", {
if (suppressWarnings(require("knitr"))) {
# Build a plan doomed to fail:
bad_plan <- drake_plan(x = function_doesnt_exist())
cache <- storr::storr_environment() # optional
try(
make(bad_plan, cache = cache, history = FALSE),
silent = TRUE
) # error
drake_failed(cache = cache) # "x"
e <- diagnose(x, cache = cache) # Retrieve the cached error log of x.
names(e)
e$error
names(e$error)
}
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.