使用 R 的 Shiny 建立網頁應用程式
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 建立網頁應用程式