How to listen for more than one event expression within a Shiny observeEvent
问题 I want two different events to trigger an observer. It was suggested here that this should work. But it seems that it depends only on the second event. observeEvent({ input$spec_button mainplot.click$click }, { ... } ) Have a look at the example. ui <- shinyUI(bootstrapPage( actionButton("test1", "test1"), actionButton("test2", "test2")) ) server <- shinyServer(function(input, output) { observeEvent({ input$test1 input$test2 }, { print('Hello World') }) }) shinyApp(ui, server) Once you click