View source: R/handler_slowdown.R
| handler_slowdown | R Documentation |
Progression Handler: Slow Down Progress Reporting
handler_slowdown(
duration = 10,
intrusiveness = 0,
target = "void",
enable = getOption("progressr.enable", TRUE),
...
)
duration |
(numeric) Added slowdown (in seconds) across all progress
steps, e.g. if |
intrusiveness |
(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user. |
target |
(character vector) Specifies where progression updates are rendered. |
enable |
(logical) If FALSE, then progress is not reported. |
... |
Additional arguments passed to |
This progression handler delays each progress step a certain number of seconds. It does not render any output.
## Not run:
handlers(handler_slowdown(duration = 30.0)) ## 30-second total slowdown
with_progress(y <- slow_sum(1:100))
print(y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.