progress_percent {switchboard} | R Documentation |
Display a percentage.
Description
The progress_percent
widget displays a text description of a percentage
value between 0
Arguments
eavesdrop |
The variable to track with a progress bar. |
caption |
A small text string describing the percent value context. |
maximum |
The maximum value of |
size |
A number used to designate the size (magnification) of the
widget. The default is set to |
placeOnGrid |
A row by column coordinate (e.g., |
updates |
The number of times the widget is to be updated (e.g., when it be modified/changed). The default updates the widget 100 times. Increase number for smoother progress bar animation. |
delay |
Pause each update of the switchboard. Default has no delay,
values are in seconds (e.g., |
honest |
When |
closeAtMaximum |
Functions like |
Value
Nothing.
Usage
progress_percent(eavesdrop, caption = "", maximum = 100, size = 1, placeOnGrid = c(1, 1), updates = 100, delay = 0, honest = FALSE, closeAtMaximum = FALSE)
See Also
Other progress bars:
progress_benchmark()
,
progress_ibis()
,
progress_image()
,
progress_oyster()
,
progress_phyllotaxis()
,
progress_pikachu()
,
progress_ring_percent()
,
progress_ring()
Examples
## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
progress_percent(i, maximum = 250)
}
switchboard_close()
## End(Not run)