
Last chance! 50% off unlimited learning
Sale ends in
actionButton(inputId, label, icon = NULL, ...)actionLink(inputId, label, icon = NULL, ...)
icon
to appear on the button.animationOptions
,
sliderInput
;
checkboxGroupInput
;
checkboxInput
; dateInput
;
dateRangeInput
; fileInput
;
numericInput
; radioButtons
;
selectInput
, selectizeInput
;
submitButton
; textInput
# In server.R
output$distPlot <- renderPlot({
# Take a dependency on input$goButton
input$goButton
# Use isolate() to avoid dependency on input$obs
dist <- isolate(rnorm(input$obs))
hist(dist)
})
# In ui.R
actionButton("goButton", "Go!")
Run the code above in your browser using DataLab