Case Studies: Building Web Applications with Shiny in R
Dean Attali
Shiny Consultant
ui <- fluidPage( textInput(inputId = "package", label = "What's your favourite R package?", value = "shiny") )
server <- function(input, output) {}
shinyApp(ui, server)
str(input$package)
chr "shiny"
numericInput("years", "How many years have you been using R?",
value = 4, min = 0, max = 25)
str(input$years)
int 4
checkboxInput("agree", "I agree to the terms and conditions",
value = TRUE)
str(input$agree)
logi TRUE
Case Studies: Building Web Applications with Shiny in R