函数 dashboardPagePlus() 与最新的 shinydashboardPlus 版本不兼容
Function dashboardPagePlus() is not compatible with latest shinydashboardPlus version
我使用从 here 到 运行 shinydashboardPlus 的确切代码。但是当我尝试 运行 应用程序时,我得到:could not find function "dashboardPagePlus"
。我用
尝试了 CRAN 和 github 版本
# for the CRAN version
install.packages("shinydashboardPlus")
# for the latest version
devtools::install_github("RinteRface/shinydashboardPlus")
我的会话信息是:
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shinydashboardPlus_2.0.0 shinydashboard_0.7.1 shiny_1.6.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 withr_2.3.0 packrat_0.5.0 digest_0.6.26 later_1.1.0.1 mime_0.9
[7] R6_2.4.1 lifecycle_0.2.0 xtable_1.8-4 magrittr_2.0.1 rlang_0.4.9 promises_1.1.1
[13] ellipsis_0.3.1 tools_4.0.4 httpuv_1.5.4 fastmap_1.0.1 compiler_4.0.4 htmltools_0.5.1
但它不起作用。我尝试在 rstudio cloud 中使用 运行 并且它有效,但使用了 shinydashboardPlus_0.7.5
版本。如何找到并安装它?
您在本地使用的 shinydashboardPlus
版本(来自 CRAN 和 Github)是版本 2.0.0(如您的 SessionInfo
中所述)和函数 dashboardPagePlus
不再在这个新版本中(它在早期版本中,例如 0.7.5,因此为什么云上的这个版本上的示例 运行s 尚未更新)。
所以你 refer to 的例子现在已经过时了,因为它使用了现在 2.0.0 中没有的旧函数(我将在 Github 上提出一个问题,因为我也想要一个新的可重现的例子!)。
对软件包进行了重大重写 - 有关详细信息,请参阅 https://rinterface.github.io/shinydashboardPlus/articles/shinydashboardPlus.html and https://rinterface.github.io/shinydashboardPlus/news/index.html。
您可以从他们的 Github repo 下载和浏览旧的软件包版本,但我不建议这样做,因为您会 运行 陷入向后兼容性问题。
我使用从 here 到 运行 shinydashboardPlus 的确切代码。但是当我尝试 运行 应用程序时,我得到:could not find function "dashboardPagePlus"
。我用
# for the CRAN version
install.packages("shinydashboardPlus")
# for the latest version
devtools::install_github("RinteRface/shinydashboardPlus")
我的会话信息是:
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] shinydashboardPlus_2.0.0 shinydashboard_0.7.1 shiny_1.6.0
loaded via a namespace (and not attached):
[1] Rcpp_1.0.5 withr_2.3.0 packrat_0.5.0 digest_0.6.26 later_1.1.0.1 mime_0.9
[7] R6_2.4.1 lifecycle_0.2.0 xtable_1.8-4 magrittr_2.0.1 rlang_0.4.9 promises_1.1.1
[13] ellipsis_0.3.1 tools_4.0.4 httpuv_1.5.4 fastmap_1.0.1 compiler_4.0.4 htmltools_0.5.1
但它不起作用。我尝试在 rstudio cloud 中使用 运行 并且它有效,但使用了 shinydashboardPlus_0.7.5
版本。如何找到并安装它?
您在本地使用的 shinydashboardPlus
版本(来自 CRAN 和 Github)是版本 2.0.0(如您的 SessionInfo
中所述)和函数 dashboardPagePlus
不再在这个新版本中(它在早期版本中,例如 0.7.5,因此为什么云上的这个版本上的示例 运行s 尚未更新)。
所以你 refer to 的例子现在已经过时了,因为它使用了现在 2.0.0 中没有的旧函数(我将在 Github 上提出一个问题,因为我也想要一个新的可重现的例子!)。
对软件包进行了重大重写 - 有关详细信息,请参阅 https://rinterface.github.io/shinydashboardPlus/articles/shinydashboardPlus.html and https://rinterface.github.io/shinydashboardPlus/news/index.html。
您可以从他们的 Github repo 下载和浏览旧的软件包版本,但我不建议这样做,因为您会 运行 陷入向后兼容性问题。