2015-07-01 19 views
0

我試圖指定Shiny Dashboard標題的寬度,如here所述。但是,我不斷收到錯誤Error in FUN(X[[1L]], ...) : Expected an object with class 'shiny.tag'.,但只有當我添加額外的行來指定標題寬度titleWidth = 400。 Withouth線,應用程序運行良好(沒有應用程序只是一個框架頁面來重現錯誤)。爲ShinyDashboard標題指定titleWidth不起作用

代碼如下...任何幫助非常感謝。

## app.R ## 
library(shiny) 
library(shinydashboard) 

ui <- dashboardPage(
    dashboardHeader(
    title = "Title Which is Kinda Long", 
    titleWidth = 400 
    ), 
    dashboardSidebar(), 
    dashboardBody() 
) 

server <- function(input, output) { } 

shinyApp(ui, server) 

回答