Progression Handler: Progress Reported via 'pbmcapply' Progress Bars (Text) in the Terminal
A progression handler for pbmcapply::progressBar()
.
handler_pbmcapply( substyle = 3L, style = "ETA", file = stderr(), intrusiveness = getOption("progressr.intrusiveness.terminal", 1), target = "terminal", ... )
substyle |
(integer) The progress-bar substyle according to |
style |
(character) 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 |
This progression handler requires the pbmcapply package.
Since style = "txt"
corresponds to using handler_txtprogressbar()
with style = substyle
, the main usage of this handler is with
style = "ETA"
(default) for which substyle
is ignored.
Below is how this progress handler renders by default at 0%, 30% and 99%
progress:
With handlers(handler_pbmcapply())
:
| | 0%, ETA NA |=========== | 30%, ETA 01:32 |======================================| 99%, ETA 00:01
if (requireNamespace("pbmcapply", quietly = TRUE)) { handlers("pbmcapply") with_progress({ y <- slow_sum(1:10) }) print(y) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.