Hello,
I recently upgraded my shiny library from 1.5 to 1.7 and it looks like it caused errors with some of my observeEvents. Here is some sample code that works in 1.5 but not in 1.7. The error occurs at the event handler evaluation (Error in eval_tidy: no function to return from, jumping to top level).
library(shiny)
ui <- fluidPage(
numericInput("x", "x", 0),
textInput("y", "y")
)
server <- function(input, output, session){
observeEvent({
if ((input$x > 3) && isTruthy(input$y)) TRUE
else return()
},{
print(sprintf(
"'x' is greater than 3 and is 'y' is truthy (x = %s; y = '%s')",
input$x, input$y
))
})
}
shinyApp(ui, server)