chapters/2/2.8.1/app.R

library(shiny)
ui <- fluidPage(
    textInput("your_name",label = "What is your name"),
    textOutput("text_out")
)
server <- function(input, output, session) {
    output$text_out <- renderText({
        paste0("Hello ", input$your_name)
        })
}
shinyApp(ui, server)
brunocarlin/mastering_shiny documentation built on June 8, 2020, 3:46 p.m.