Skip to content

Instantly share code, notes, and snippets.

View McClellandLegge's full-sized avatar

McClelland Legge McClellandLegge

View GitHub Profile
@McClellandLegge
McClellandLegge / server.R
Created May 19, 2016 13:42 — forked from withr/server.R
"Calculation In Process..." busy indictor
shinyServer(function(input, output) {
output$obs <- renderUI({
sliderInput("obs", "Number of observations:",
min = 10000, max = 90000,
value = 50000, step = 10000)
})
output$distPlot <- renderPlot({
if (!is.null(input$obs)) {
dist <- NULL
for (i in 1:input$obs) {