Building Web Applications with Shiny in R
Ramnath Vaidyanathan
VP of Product Research
ui <- fluidPage(
textInput('name', 'Enter your name')
)
server <- function(input, output, session){
observe({
showNotification(
paste("You entered the name", input$name)
)
})
}
Role
reactive()
is for calculating values, without side effects.observe()
is for performing actions, with side effects.Differences
Building Web Applications with Shiny in R