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.
if (FALSE) { 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) } }) }