我正在创建一个闪亮的仪表板,我创建了 3 个小部件,两个 SelectizeInput 和一个单选按钮,问题是当我添加单选按钮时,它会显示
错误:$ 运算符对原子向量无效
注意:它曾经工作过的相同代码然后失败了我不知道为什么
这是关于小部件的代码 R。有人能帮助我吗
dashboardBody(
tabItems(
tabItem(tabName = "dashboard",h2("Analyse du comportement électoral des citoyens tunisiens", align="center",style = "color:blue"),
fluidRow(
tiltle="filtre",
column(width=4,
box(
title = "Filtre",
status = "primary",
width = 8,
solidHeader = TRUE,
background="navy",
box(
solidHeader = FALSE,
width = 8,
background = "navy" ,
radioButtons("genre", "Genre", list("Homme","Femme","Tous"),"Tous")
),
box(
solidHeader = FALSE,
width = 12,
background = "navy",
selectizeInput("region", label = "Région",
choices = levels(data$REGION),
selected = "Ariana", multiple=TRUE)
),
box(
solidHeader = FALSE,
width = 12,
background = "navy",
selectizeInput("parti", label = "Parti politique",
choices = levels(data$Q99),
selected = "", multiple=TRUE)
),
box(
submitButton("Mettre à jour!",icon("refresh")),
background = "navy"
)
)),