为了制作动态创建面板的应用程序,我想从包shinyWidgets中删除、隐藏和/或更新面板。如果你有解决的办法或方法,我会非常高兴。提前谢谢你!library(shinyWidgets)
panel( actionButton("remove_panel", "Remove this panel"))
server
首先,我不太明白variables函数是如何工作的:在函数内部,我们可以看到使用了input$variable,但是它如何知道使用的是哪个selectInput?我正在尝试:我使用创建了一个remove按钮,但是我不知道如何使每个按钮工作。output,session) {
# this remove button works, from https://shiny.rstudio.com/reference/shiny/latest/removeUI.ht