Xây dựng ứng dụng web với Shiny trong 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)
)
})
}
Vai trò
reactive() dùng để tính giá trị, không có tác dụng phụ.observe() dùng để thực hiện hành động, có tác dụng phụ.Khác biệt
Xây dựng ứng dụng web với Shiny trong R