Skip to content

Instantly share code, notes, and snippets.

@maurolepore
Created August 10, 2021 14:13
Show Gist options
  • Save maurolepore/dde1e7dc35aa7e98dc236ce43f56bad3 to your computer and use it in GitHub Desktop.
Save maurolepore/dde1e7dc35aa7e98dc236ce43f56bad3 to your computer and use it in GitHub Desktop.
library(shiny)

ui <- fluidPage(
  textInput("name", "What's your name?"),
  textOutput("greeting")
)

server <- function(input, output, session) {
  output$greeting <- renderText(paste("Hello", input$name))
}

shinyApp(ui, server)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment