View source: R/handler_shiny.R
handler_shiny | R Documentation |
A progression handler for shiny and shiny::withProgress()
.
handler_shiny(
intrusiveness = getOption("progressr.intrusiveness.gui", 1),
target = "gui",
inputs = list(message = NULL, detail = "message"),
enable = getOption("progressr.enable", TRUE),
...
)
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 Shiny progress
elements 'message' and 'detail' should be updated. Valid sources are
|
enable |
(logical) If FALSE, then progress is not reported. |
... |
Additional arguments passed to |
For most Shiny application there is little need to use this Shiny handler
directly. Instead, it is sufficient to use withProgressShiny()
.
This progression handler requires the shiny package.
## Not run:
handlers(handler_shiny())
with_progress(y <- slow_sum(1:100))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.