Skip to content

Instantly share code, notes, and snippets.

@wch
wch / server.r
Last active December 13, 2015 19:38
Shiny demo of actionButton
shinyServer(function(input, output) {
output$distPlot <- renderPlot({
# Take a dependency on input$goButton
input$goButton
# Use isolate() to avoid dependency on input$obs
dist <- isolate(rnorm(input$obs))
hist(dist)
})
})