Great, this solved my issue. Thank you! The point seems to be to use the line
"Choose ..." = "",
instead of the line
"Choose ..." = c("Choose ..." = ""),
By the way, I think your whole code was meant to be
ui <- fluidPage(
selectInput("my_select", "Label",
choices = list(
"Choose ..." = "",
"Group A" = c("A1 label" = "A1", "A2 label" = "A2"),
"Group B" = c("B1 label" = "B1", "B2 label" = "B2")
)),
verbatimTextOutput("my_out")
)
since otherwise, there is an additional closing parenthesis in the line
"Choose ..." = ""),