11.10 SERVER

  • Reactive output automatically responds when users change widget input values

  • BUT we need to tell the server what to do with the input values

  • server <- function(input, output) {**construction of output objects in here**})

  • Describe the server how to build the object

    • The object will be reactive if the code that builds it calls a widget value
    • output$distPlot <- renderPlot({...}) (store in output list)
    • render functions wrap outputs and correspond to the type or reactive output
      • renderImage({...}) creates images (saved as a link to a source file)
      • renderPlot({...}) creates plots
      • renderPrint({...}) creates any printed output
      • renderTable({...}) creates data frame, matrix, other table like structures
      • renderText({...}) creates character strings
      • renderUI({...}) creates a Shiny tag object or HTML