safe_observe | R Documentation |
observe
functionSafely wrap expression x
such that shiny application does
no hang when when the expression raises error.
safe_observe(x, env = NULL, quoted = FALSE, priority = 0L, domain = NULL, ...)
x, env, quoted, priority, domain, ... |
passed to |
'shiny' observer instance
values <- shiny::reactiveValues(A=1) obsB <- safe_observe({ print(values$A + 1) })
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.