get_spinner: Character vector to put a spinner on the screen

Description Usage Arguments Value See Also Examples

View source: R/spinner.R

Description

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

Usage

1

Arguments

which

The name of the chosen spinner. The default depends on whether the platform supports Unicode.

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

1
2

Example output

$name
[1] "line"

$interval
[1] 130

$frames
[1] "-"  "\\" "|"  "/" 

$name
[1] "shark"

$interval
[1] 120

$frames
 [1] "<U+2590>|\\____________<U+258C>" "<U+2590>_|\\___________<U+258C>"
 [3] "<U+2590>__|\\__________<U+258C>" "<U+2590>___|\\_________<U+258C>"
 [5] "<U+2590>____|\\________<U+258C>" "<U+2590>_____|\\_______<U+258C>"
 [7] "<U+2590>______|\\______<U+258C>" "<U+2590>_______|\\_____<U+258C>"
 [9] "<U+2590>________|\\____<U+258C>" "<U+2590>_________|\\___<U+258C>"
[11] "<U+2590>__________|\\__<U+258C>" "<U+2590>___________|\\_<U+258C>"
[13] "<U+2590>____________|\\<U+258C>" "<U+2590>____________/|<U+258C>"
[15] "<U+2590>___________/|_<U+258C>" "<U+2590>__________/|__<U+258C>"
[17] "<U+2590>_________/|___<U+258C>" "<U+2590>________/|____<U+258C>"
[19] "<U+2590>_______/|_____<U+258C>" "<U+2590>______/|______<U+258C>"
[21] "<U+2590>_____/|_______<U+258C>" "<U+2590>____/|________<U+258C>"
[23] "<U+2590>___/|_________<U+258C>" "<U+2590>__/|__________<U+258C>"
[25] "<U+2590>_/|___________<U+258C>" "<U+2590>/|____________<U+258C>"

cli documentation built on March 19, 2019, 5:05 p.m.