【发布时间】:2019-06-07 13:39:23
【问题描述】:
我无法找到下面发布的代码中缺少的内容。我不断收到以下错误:
"tabsetPanel 中的错误(id = "tracker", tabPanel("Premium", tags$head(tags$style(type = "text/css", : 缺少参数, 没有默认值”
ui <- dashboardPage(skin = "green",
dashboardHeader(title="Niche Tool"),
dashboardSidebar(disable = TRUE),
dashboardBody(
tags$style(HTML(".box-header{background:#d2d2d2; color:#d83000; text-align:center;}")),
shinyUI <- fluidPage(
mainPanel(
tabsetPanel(
id = 'tracker',
tabPanel("Premium",
tags$head(tags$style( type = 'text/css', '#myPivot{ overflow-x: scroll; overflow-y: scroll; }')),
rpivotTableOutput("pivot1", width = '100%', height = '300px'), br(), br(), br(), br(),br(), br(),
rpivotTableOutput("pivot2", width = '100%', height = '300px')),
#tabPanel("Incurred Losses"),
tabPanel("Discretionary Pricing",
rpivotTableOutput("pivot3", width = '100%', height = '300px'), br(), br(), br(), br(),br(), br(),
rpivotTableOutput("pivot4", width = '100%', height = '300px')),
)))))
【问题讨论】:
-
在
rpivotTableOutput("pivot4", width = '100%', height = '300px'))之后去掉逗号 -
哇.....我想很容易忽略简单的事情。非常感谢。
-
如果您想省去输入一些
br()s:lapply(rep('', 6), br)或使用 css 边距。