choices_unnamed <- list(
fruits = c("orange", "apple", "lemon"),
vegetables = c("potato", "carrot", "broccoli")
)
pickCheckboxNames(choices_unnamed)
pickCheckboxLabels(choices_unnamed)
choices_named <- list(
fruits = c("Orange" = "orange", "Apple" = "apple", "Lemon" = "lemon"),
vegetables = c("Potato" = "potato", "Carrot" = "carrot", "Broccoli" = "broccoli")
)
pickCheckboxNames(choices_named)
pickCheckboxLabels(choices_named)
Run the code above in your browser using DataLab