首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >函数dashboardPagePlus()与最新的shinydashboardPlus版本不兼容

函数dashboardPagePlus()与最新的shinydashboardPlus版本不兼容
EN

Stack Overflow用户
提问于 2021-03-18 05:07:53
回答 1查看 1.5K关注 0票数 5

我使用here中的完全相同的代码来运行shinydashboardPlus。但当我尝试运行这个应用程序时,我得到的结果是:could not find function "dashboardPagePlus"。我尝试了CRAN和github版本

代码语言:javascript
复制
# for the CRAN version
install.packages("shinydashboardPlus")
# for the latest version
devtools::install_github("RinteRface/shinydashboardPlus")

我的sessionInfo是:

代码语言:javascript
复制
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版本。怎样才能找到并安装它?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-03-18 05:29:30

你在本地使用的shinydashboardPlus版本(来自CRAN和Github)是2.0.0版本(如你的SessionInfo中所述),dashboardPagePlus函数不再在这个新版本中(它是在更早的版本中,例如0.7.5,所以这个例子运行在云上的这个版本上,还没有更新)。

所以,示例you refer to现在已经过时了,因为它使用了2.0.0中没有的旧函数(我将在Github上打开一个问题,因为我也想要一个新的可重现的示例!)

对包进行了重大重写-有关更多详细信息,请参阅https://rinterface.github.io/shinydashboardPlus/articles/shinydashboardPlus.htmlhttps://rinterface.github.io/shinydashboardPlus/news/index.html

你可以从他们的Github repo下载和浏览旧的包版本,但我不建议这样做,因为你会遇到向后兼容性的问题。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66681250

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档