Safely wrap expression x
such that shiny application does
no hang when when the expression raises error.
Arguments
- x, env, quoted, priority, domain, ...
passed to
observe
- error_wrapper
handler when error is encountered, choices are
'none'
,'notification'
(seeerror_notification
), or'alert'
(seeerror_alert
)- watch_data
whether to invalidate only when
watch_data_loaded
isTRUE
Examples
values <- shiny::reactiveValues(A=1)
obsB <- safe_observe({
print(values$A + 1)
})