I'm wondering why updateSelectizeInput can't handle NA as a choice when using server = TRUE.
Is this a bug or expected behaviour?
library(shiny)
ui <- fluidPage(
selectizeInput("variable1", "Variable:", c("a", "b")),
selectizeInput("variable2", "Variable:", c("a", "b"))
)
server <- function(input, output, session) {
updateSelectizeInput(inputId = "variable1", choices = NA, server = TRUE)
updateSelectizeInput(inputId = "variable2", choices = NA, server = FALSE)
}
shinyApp(ui, server)