我有以下代码:
library(shinydashboard)
library(shiny)
ui <- shinyUI( dashboardPage(dashboardHeader(title = "example"),
dashboardSidebar(),
dashboardBody(h3("text format"),
mainPanel(
infoBox("123", "Today's work", "Lots of pending", width = 6)
infoBox("234", "Today's work", "completed", width = 6)
))))
server <- shinyServer({})
shinyApp(ui, server)有没有人能帮我解决这个错误?另外,我希望“今天的工作”在infoBox中的文字是正常的字母,而不是在粗体字母。
发布于 2019-02-07 21:51:55
这应该可以解决这个问题:
server <- shinyServer(function(input, output){})下面是完整的代码:
library(shinydashboard)
library(shiny)
ui <- shinyUI( dashboardPage(dashboardHeader(title = "example"),
dashboardSidebar(),
dashboardBody(h3("text format"),
mainPanel(
infoBox("123", "Today's work", "Lots of pending", width = 6),
infoBox("234", "Today's work", "completed", width = 6)
))))
server <- shinyServer(function(input, output){})
shinyApp(ui, server)结果:

https://stackoverflow.com/questions/54572836
复制相似问题