I have a drop down in sidebarPanel
from which I can select a maximum of 2 options. I want to create an if loop where in - choosing ('Saddle Joint' and 'Gliding Joint') or ('Saddle Joint' and 'Synovial Fluid') from the drop down leads to selection of objects 'x' and 'y' in another sidebarPanel
named datasets - basically creating a linkage.
I tried this piece of code, but it doesn't work:
if ("Saddle Joint" %in% input$location & "Gliding Joint" %in% input$location || "Saddle Joint" %in% input$location & "Synovial Fluid" %in% input$location) {
updateCheckboxGroupInput(session,
"datasets", "Datasets:", choices = c("x","y"),
selected= c("x","y"))
}
Take a look at the screenshot! Screenshot
Thanks.