cli_progress_step_quick | R Documentation |
Version of cli::cli_progress_step()
that for the messages on (un)successful termination simply appends done/failed to msg
.
cli_progress_step_quick(
msg,
spinner = FALSE,
class = if (!spinner) ".alert-info",
current = TRUE,
.auto_close = TRUE,
.envir = parent.frame()
)
msg |
Message to show. It may contain glue substitution and cli
styling. It can be updated via |
spinner |
Whether to show a spinner at the beginning of the line.
To make the spinner spin, you'll need to call |
class |
cli class to add to the message. By default there is no class for steps with a spinner. |
current |
Whether to use this progress bar as the current progress bar of the calling function. See more at 'The current progress bar' below. |
.auto_close |
Whether to terminate the progress bar when the
calling function (or the one with execution environment in |
.envir |
The environment to use for auto-termination and for glue substitution. It is also used to find and set the current progress bar. |
The cli progress bar id
as a character scalar, invisibly.
Other functions extending the cli package:
cli_process_expr()
,
cli_qty_lgl()
{
pal::cli_progress_step_quick(msg = "Doing my thing")
Sys.sleep(1)
cli::cli_progress_done()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.