drake_running | R Documentation |
List the targets that either
Are currently being built during a call to make()
, or
Were in progress when make()
was interrupted.
drake_running(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_failed()
, drake_cancelled()
,
drake_progress()
, make()
## Not run:
isolate_example("Quarantine side effects.", {
if (suppressWarnings(require("knitr"))) {
load_mtcars_example() # Get the code with drake_example("mtcars").
make(my_plan) # Run the project, build the targets.
drake_running() # Everything should be done.
# nolint start
# Run make() in one R session...
# slow_plan <- drake_plan(x = Sys.sleep(2))
# make(slow_plan)
# and see the progress in another session.
# drake_running()
# nolint end
}
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.