更新时间:2023-01-24 07:43:26
submitButton
is just made for this.
If you want to use actionButton
instead, simply use isolate
to avoid refresh based on value changes, and add the input$Button
in the code like:
output$Minimal_Example <- renderPrint({
input$Button
Age <- isolate(input$Age)
Sex <- isolate(input$ChosenSex)
c(Age, Sex)
})