Skip to content

Instantly share code, notes, and snippets.

View manolo20's full-sized avatar

Manolo manolo20

  • Canada
View GitHub Profile
@manolo20
manolo20 / server.r
Created July 14, 2018 02:53 — forked from wch/server.r
Shiny example: dynamic input fields
data_sets <- c("mtcars", "morley", "rock")
shinyServer(function(input, output) {
# Drop-down selection box for which data set
output$choose_dataset <- renderUI({
selectInput("dataset", "Data set", as.list(data_sets))
})
# Check boxes