benchmark {switchboard} | R Documentation |
Benchmark or signal an event or achievement with a giant checkmark.
Description
The benchmark
widget displays the number of simulation iterations.
Arguments
eavesdrop |
The variable to track. |
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., |
Value
Nothing.
Usage
benchmark(eavesdrop = NULL, benchmark = NA, label = "", size = 1, placeOnGrid = c(1, 1))
See Also
Other eavesdroppers:
counter_tally()
,
counter()
,
eavesdropper_2D()
,
eavesdropper_X()
,
eavesdropper()
,
injector_2D()
,
injector_X()
,
injector()
,
number_pair()
,
number_quartet()
,
number_trio()
,
number()
,
progress_benchmark()
Examples
## Not run:
for (i in 1:250) {
switchboard(delay = 0.01) %>%
benchmark(i, benchmark = 125, label = ">125")
}
switchboard_close()
## End(Not run)