| pip_run_state | R Documentation |
Returns the state of the last (or current) run of a pipeline. Views share the run state of their pipeline.
pip_run_state(x)
x |
A pipeflow pip or view. |
The run state is one of
"ready": the pipeline is new, was reset, or its last run finished
without failures.
"running": a run is in progress (seen from within a step).
"restart": a step requested a restart, which pip_run() carries out
right after the step.
"halted": a step halted the run (see section 'Runtime control flow
via restart and halt' in pip_run()).
"failed": the last run stopped on an error (on_error = "stop").
"continued": the last run had failed steps but went on
(on_error = "continue").
pip_reset() sets the run state back to "ready".
A single character string.
pip_run(), pip_reset()
p <- pip_new() |>
pip_add("load", \(n = 3) seq_len(n)) |>
pip_add("fail", \(x = ~load) stop("boom"))
pip_run_state(p) # "ready"
try(pip_run(p, lgr = NULL))
pip_run_state(p) # "failed"
suppressWarnings(pip_run(p, on_error = "continue", lgr = NULL))
pip_run_state(p) # "continued"
pip_reset(p)
pip_run_state(p) # "ready"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.