eventReactive() provides a useful way to delay reactions when combined with an actionButton().

selectInput("iriscol", label = "Select a variable", choices = names(iris))
actionButton("go", "Go!")
data <- eventReactive(input$go, { iris[[input$iriscol]] })

renderPlot({
  hist(data(), probability = TRUE)
})


rstudio/reportsWS documentation built on May 28, 2019, 5:42 a.m.