Hi, is there a way of having items with the same name as in a shinyInput
?
- In the example below "A" is in both Letters and Random but is differentiated by the parent. But this does not work in the shinyInput right now. How can this be fixed?
- Also, is it possible to work out what the parent is (would need to sort out the first problem), e.g. which parent did "A" come from?
library(shiny)
test_list <- list(Letters = c("A", "B", "C"),
Numbers = c("1", "2", "3"),
Random = c("A", "2", "C"))
shinyApp(
ui = fluidPage(
selectInput("selection",
label = "Choose:",
choices = test_list,
selected = test_list[1]),
textOutput("result")
),
server = function(input, output) {
output$result <- renderText({
paste("You chose", input$selection)
})
}
)