【发布时间】:2021-06-02 16:51:51
【问题描述】:
我尝试使用dashboardPagePlus 创建一个闪亮的应用程序。
我已经导入了 shinydashboard 和 shinydashboardPlus 包。但是我在运行 UI 时收到一条错误消息。
dashboardPagePlus(skin = "black", dashboardHeaderPlus(title = "title"), : 找不到函数 "dashboardPagePlus"
我不知道为什么。我尝试从 RDocumentation 运行示例代码。但是还是有这个问题。
示例代码:
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
shinyApp(
ui = dashboardPagePlus(
header = dashboardHeaderPlus(
enable_rightsidebar = TRUE,
rightSidebarIcon = "gears"
),
sidebar = dashboardSidebar(),
body = dashboardBody(),
rightsidebar = rightSidebar(),
title = "DashboardPage"
),
server = function(input, output) { }
)
如何解决? 非常感谢。
【问题讨论】:
-
您是否将软件包更新到版本 2.0.0? If you updated from v0.7.5, you will have to rewrite most of the code...
-
感谢您的帮助。软件包版本为“2.0.1”。我会尝试重写代码。谢谢。
标签: r shiny shinydashboard