safe_observe: Safe-wrapper of 'shiny' 'observe' function

safe_observeR Documentation

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, ...)

Arguments

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

passed to observe

Value

'shiny' observer instance

Examples


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

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


ravedash documentation built on Oct. 16, 2022, 1:06 a.m.