2.6 What can one OUTPUT?

  1. Text
  2. Tables
  3. Plots
  4. Downloads

Text

Every output (in the UI) is coupled with a render (in the server).

Note that there are two render functions which behave slightly differently:

  1. renderText() <-> textOutput()
  2. renderPrint() <-> verbatimTextOutput()
## User Interface
#----------------
ui <- fluidPage(
    # Static TEXT
    textOutput("Hello Friend"),
    verbatimTextOutput("SSN")
    )

## Server Section
#----------------
server <- function(input, output, session) {
    # Varible TEXT
    output$text <- renderText( animals ),
    output$code <- renderPrint({     ## Curly brackets needed IF 
        state_name                   ## commands require multiple lines,
        print("OK")
        }),
}