2.6 What can one OUTPUT?
- Text
- Tables
- Plots
- 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:
- renderText() <-> textOutput()
- 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")
}),
}