Progression Handler: Progress Reported as Plain Progress Bars (Text) in the Terminal
A progression handler for utils::txtProgressBar()
.
handler_txtprogressbar( style = 3L, file = stderr(), intrusiveness = getOption("progressr.intrusiveness.terminal", 1), target = "terminal", ... )
style |
(integer) The progress-bar style according to
|
file |
(connection) A base::connection to where output should be sent. |
intrusiveness |
(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user. |
target |
(character vector) Specifies where progression updates are rendered. |
... |
Additional arguments passed to |
Below is how this progress handler renders at 0%, 30% and 99% progress
for the three different style
values that utils::txtProgressBar()
supports.
With handlers(handler_txtprogressbar(style = 1L))
:
==================================== ==========================================================
With handlers(handler_txtprogressbar(style = 2L))
:
==================================== ==========================================================
With handlers(handler_txtprogressbar(style = 3L))
:
| | 0% |=============== | 30% |=================================================| 99%
handlers("txtprogressbar") with_progress({ y <- slow_sum(1:10) }) print(y)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.