Convert choices_selected to data_extract_spec with only select_spec
cs_to_des_select(
cs,
dataname,
multiple = FALSE,
ordered = FALSE,
label = "Select"
)(teal.transform::data_extract_spec())
(choices_selected)
object to be transformed. See teal.transform::choices_selected() for details.
(character)
name of the data
(logical)
Whether multiple values shall be allowed in the
shiny shiny::selectInput().
(logical(1))
Flags whether selection order should be tracked.
(character)
Label to print over the selection field. For no label, set to NULL.