Hello,
I have this really simple example below. Essentially, I want the second varSelectInput
to only provide a list we can select from that excludes the options selected with the first varSelectInput
. Thus, if mpg
and cyl
are selected on the first one we cannot have them as options for the second.
I am relatively sure one will have to do some server side ui rendering and likely some !!! or !! to get this to work. I just want the cleanest most intuitive solution for this problem. Thanks!
shinyApp(
ui = fluidPage(
varSelectInput("variable_first", "Variable selected:", data = mtcars, multiple = TRUE),
#varSelectInput("variable_remainder", "Variables selected:", data = mtcars, multiple = TRUE),
verbatimTextOutput("text1"),
verbatimTextOutput("text2")
),
server = function(input, output) {
output$text1 <- renderPrint({
input$variable_first
})
#output$text2 <- renderPrint({
#input$variable_remainder
#})
}
)