Learn R Programming

ravedash (version 0.1.2)

safe_observe: Safe-wrapper of 'shiny' observe function

Description

Safely wrap expression x such that shiny application does no hang when when the expression raises error.

Usage

safe_observe(x, env = NULL, quoted = FALSE, priority = 0L, domain = NULL, ...)

Value

'shiny' observer instance

Arguments

x, env, quoted, priority, domain, ...

passed to observe

Examples

Run this code

values <- shiny::reactiveValues(A=1)

obsB <- safe_observe({
  print(values$A + 1)
})

Run the code above in your browser using DataLab