Hi everybody,
can somebody explain this behavior to me?
In R, if list l[[i]] contains only one element, selectizeinput shows only the column-name instead of the element. It doesn't include the column name if there are more elements.
In the console the behavior is also different between these 2:
choices List of values to select from. If elements of the list are named, then that name rather than the value is displayed to the user. This can also be a named list whose elements are (either named or unnamed) lists or vectors. If this is the case, the outermost names will be used as the "optgroup" label for the elements in the respective sublist. This allows you to group and label similar choices. See the example section for a small demo of this feature.
so there is specific behaviour difference intended between lists with names and lists without.
Your way of setting up the choices relies on cbind'ing to form matrices.
It might be preferred to work more directly with lists qua lists.