2.2 The Shiny Basic User Interface (ui)

  • Recall, the simplest Shiny application has 2 components, ui & server

  • user interface contains nested R functions that assist in assembling the HTML.

library(shiny)

user_interface <- fluidPage( **inputId** ) ## WE'LL FOCUS HERE FIRST

server <- function(input, output, session) { } ## FOCUS HERE SECONDARILY

shinyApp(ui = user_interface, server = server)
Naming; inputId has 2 constraints
  1. inputId contain Only Letters, Numbers, and Underscores
    • NO / -.!@#$%^&*;:
    • NO slashes, dashes, Nor special characters,
  2. inputID must be unique.