#UI BEGINS
ui <- fluidPage(
sidebarLayout(
sidebarPanel(
pickerInput("chosenplans", "Select State:",
#inputId = "stateList",
choices = as.character(unique(state_plan_data_filtered$state)),
options = list(
`actions-box` = TRUE,
`live-search` = TRUE),
multiple = FALSE,
selected = "Alabama"),
),
mainPanel()
),
)
Whenever I uncomment my inputId, I can't run my Shiny app, and it gives me this error:
Error in choicesOpt$style : $ operator is invalid for atomic vectors
However, inputId is theoretically an argument for pickerInput. Why can't I explicitly name it?