Description Arguments Value Usage See Also Examples
View source: R/progress_benchmark.R
The progress_benchmark
widget displays a progress bar with a percent
complete and a triggerable benchmark as a giant checkmark.
eavesdrop |
The variable to track with a progress bar. |
maximum |
The maximum value of |
benchmark |
The numerical value associated with |
label |
A small caption/label for the widget. |
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 |
Nothing.
1 2 3 |
Other progress bars:
progress_ibis()
,
progress_image()
,
progress_oyster()
,
progress_percent()
,
progress_phyllotaxis()
,
progress_pikachu()
,
progress_ring_percent()
,
progress_ring()
Other eavesdroppers:
benchmark()
,
counter_tally()
,
counter()
,
eavesdropper_2D()
,
eavesdropper_X()
,
eavesdropper()
,
injector_2D()
,
injector_X()
,
injector()
,
number_pair()
,
number_quartet()
,
number_trio()
,
number()
1 2 3 4 5 6 7 8 9 10 | ## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
progress_benchmark(i, maximum = 250, benchmark = 125)
}
switchboard_close()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.