3.8 Execution order

  • determined solely by the reactive graph (and not the order of lines of code/layout in the server function unlike normal R scripts)
# This code will work, but it's not easy to read
server <- function(input, output, session) {
  output$greeting <- renderText(string())
  string <- reactive(paste0("Hello ", input$name, "!"))
}