cli contains many different spinners, you choose one according to your taste.

get_spinner(which = NULL)

Arguments

which

The name of the chosen spinner. If NULL, then the default is used, which can be customized via the cli.spinner_unicode, cli.spinner_ascii and cli.spinner options. (The latter applies to both Unicode and ASCII displays. These options can be set to the name of a builting spinner, or to a list that has an entry called frames, a character vector of frames.

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()

Examples

get_spinner()
#> $name #> [1] "dots" #> #> $interval #> [1] 80 #> #> $frames #> [1] "⠋" "⠙" "⠹" "⠸" "⠼" "⠴" "⠦" "⠧" "⠇" "⠏" #>
get_spinner("shark")
#> $name #> [1] "shark" #> #> $interval #> [1] 120 #> #> $frames #> [1] "▐|\\____________▌" "▐_|\\___________▌" "▐__|\\__________▌" #> [4] "▐___|\\_________▌" "▐____|\\________▌" "▐_____|\\_______▌" #> [7] "▐______|\\______▌" "▐_______|\\_____▌" "▐________|\\____▌" #> [10] "▐_________|\\___▌" "▐__________|\\__▌" "▐___________|\\_▌" #> [13] "▐____________|\\▌" "▐____________/|▌" "▐___________/|_▌" #> [16] "▐__________/|__▌" "▐_________/|___▌" "▐________/|____▌" #> [19] "▐_______/|_____▌" "▐______/|______▌" "▐_____/|_______▌" #> [22] "▐____/|________▌" "▐___/|_________▌" "▐__/|__________▌" #> [25] "▐_/|___________▌" "▐/|____________▌" #>