r - Shinydashboard: 'restoreInput' 不是从 'namespace:shiny' 导出的对象

标签 r shiny shinydashboard

我正在使用 RStudio 创建一个新的 Shiny 应用程序。我从 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'

这是我的 sessionInfo() 输出:

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 skeleton app 并重现了这个错误。

最佳答案

运行 update.packages() 并且较新的版本没有这个问题。

关于r - Shinydashboard: 'restoreInput' 不是从 'namespace:shiny' 导出的对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44614517/

相关文章:

javascript - 在 Shiny 中使用自适应分辨率进行缩放/平移

r - 使用 shiny.router 为 shinydashboard 进行 URI 路由

r - 如果在dplyr下的前一行中满足条件,如何更改行中的值

R data.table 文本解析

R Shiny 发布错误: inferAppPrimaryDoc Execution halted

r - 将操作按钮与选择输入水平对齐 Shiny

r - Shiny 的仪表板和 Shiny 的主题?

r - 如何根据第二个数据集查找多列的平均值?

r - 每 15 分钟安排一次 R 脚本 (cronR)

r - 秒表作为 shiny for R 的输入