handler_tkprogressbar {progressr} | R Documentation |
Progression Handler: Progress Reported as a Tcl/Tk Progress Bars in the GUI
Description
A progression handler for tcltk::tkProgressBar()
.
Usage
handler_tkprogressbar(
intrusiveness = getOption("progressr.intrusiveness.gui", 1),
target = "terminal",
inputs = list(title = NULL, label = "message"),
...
)
Arguments
intrusiveness |
(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user. |
target |
(character vector) Specifies where progression updates are rendered. |
inputs |
(named list) Specifies from what sources the MS Windows
progress elements 'title' and 'label' should be updated. Valid sources are
|
... |
Additional arguments passed to |
Requirements
This progression handler requires the tcltk package and that the
current R session supports Tcl/Tk (capabilities("tcltk")
).
Examples
if (capabilities("tcltk") && requireNamespace("tcltk", quietly = TRUE)) {
handlers("tkprogressbar")
with_progress({ y <- slow_sum(1:10) })
print(y)
}