R/handler_shiny.R
handler_shiny.Rd
A progression handler for shiny and shiny::withProgress()
.
(numeric) A non-negative scalar on how intrusive (disruptive) the reporter to the user.
(character vector) Specifies where progression updates are rendered.
(named list) Specifies from what sources the Shiny progress
elements 'message' and 'detail' should be updated. Valid sources are
"message"
, "sticky_message"
and "non_sticky_message"
, where
"message"
is short for c("non_sticky_message", "sticky_message")
. For
example, inputs = list(message = "sticky_message", detail = "message")
will update the Shiny 'message' component from sticky messages only,
whereas the 'detail' component is updated using any message.
(logical) If FALSE, then progress is not reported.
Additional arguments passed to make_progression_handler()
.
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.
if (FALSE) { # \dontrun{
handlers(handler_shiny())
with_progress(y <- slow_sum(1:100))
} # }