Building Web Applications with Shiny in R
Ramnath Vaidyanathan
VP of Product Research


server <- function(input, output, session){ output$greeting <- renderText({ paste(isolate(input$greeting_type), input$name, sep = " ,") }) }


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

server <- function(input, output, session){
observeEvent(input$show_greeting, {
showModal(modalDialog(paste("Hello", input$name)))
})
}
Building Web Applications with Shiny in R