Shinydashboard:'RestoreInput'不是从'命名空间:shiny'中导出的对象 [英] Shinydashboard: 'restoreInput' is not an exported object from 'namespace:shiny'

查看:0
本文介绍了Shinydashboard:'RestoreInput'不是从'命名空间:shiny'中导出的对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用RStudio创建一个新的闪亮应用程序。我将https://rdrr.io/cran/shinydashboard/man/renderValueBox.html中的代码示例复制并粘贴到App.R.中。我收到以下错误:

Warning: Error in : 'restoreInput' is not an exported object from 'namespace:shiny'
Stack trace (innermost first):
    45: getExportedValue
    44: ::
    43: dashboardSidebar
    42: inherits
    41: tagAssert
    40: dashboardPage
     1: runApp
Error : 'restoreInput' is not an exported object from 'namespace:shiny'

以下是我的essionInfo()输出:

R version 3.3.3 (2017-03-06)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Fedora 25 (Workstation Edition)

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       
 [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              
[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] shiny_0.13.0         shinydashboard_0.6.0 dplyr_0.5.0          readr_1.0.0         

loaded via a namespace (and not attached):
 [1] Rcpp_0.12.3      digest_0.6.9     assertthat_0.1   mime_0.4         grid_3.3.3      
 [6] plyr_1.8.4       R6_2.1.2         jsonlite_0.9.19  xtable_1.8-0     gtable_0.2.0    
[11] DBI_0.5-1        magrittr_1.5     scales_0.4.1     ggplot2_2.2.1    lazyeval_0.2.0  
[16] tools_3.3.3      munsell_0.4.3    httpuv_1.3.3     colorspace_1.3-2 htmltools_0.3.5 
[21] tibble_1.2      

更新: 1)我尝试了另一台机器上的样本,但产生了相同的错误。 2)我还拿了一个shinydashboard骨架应用程序,重现了这个错误。

推荐答案

运行了updat.Packages(),较新的版本没有此问题。

这篇关于Shinydashboard:'RestoreInput'不是从'命名空间:shiny'中导出的对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆