使用 R 构建 Shiny Web 应用
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)
)
})
}
作用
reactive() 用于计算值,无副作用。observe() 用于执行动作,有副作用。差异
使用 R 构建 Shiny Web 应用