How to update button labels in R Shiny?
问题 The R Shiny website has a great example of how to update the labels and values of a variety of input types based on user input. However, I couldn't find anything for buttons. Specifically, how do I update the label for a button based on user input? 回答1: You can dynamically create the Button like so, updating the labels at the same time: library(shiny) ui =(pageWithSidebar( headerPanel("Test Shiny App"), sidebarPanel( textInput("sample_text", "test", value = "0"), #display dynamic UI uiOutput(