| get_spinner {cli} | R Documentation |
Character vector to put a spinner on the screen
Description
cli contains many different spinners, you choose one according to your
taste.
Usage
get_spinner(which = NULL)
Arguments
which |
The name of the chosen spinner. If |
Details
options(cli.spinner = "hearts")
fun <- function() {
cli_progress_bar("Spinning")
for (i in 1:100) {
Sys.sleep(4/100)
cli_progress_update()
}
}
fun()
options(cli.spinner = NULL)
Value
A list with entries: name, interval: the suggested update
interval in milliseconds and frames: the character vector of the
spinner's frames.
See Also
Other spinners:
demo_spinners(),
list_spinners(),
make_spinner()
[Package cli version 3.6.3 Index]