pickCheckboxNamesAndLabels: Generate names and labels

pickCheckboxNamesAndLabelsR Documentation

Generate names and labels

Description

Two functions extracting group names and options labels from defined choices.

Usage

pickCheckboxNames(choices)

pickCheckboxLabels(choices)

Arguments

choices

linkpickCheckboxInput choices list.

Value

Named list object defining labels for component checkbox options, or named vector storing labels for each checkbox.

Examples

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)


shinyGizmo documentation built on March 7, 2023, 7:31 p.m.