我正在尝试托管使用应用程序shinyapps.ioggvis
上的库的应用程序。上载我的应用程序时,构建用于托管应用程序的必需软件包时,该功能将失败。安装ggvis使用的dplyr时发生错误。Dplyr依次使用Rcpp,尽管可以使用RCRAN,但没有从RCRAN中检索正确的版本。runApp()
有人可以帮我吗?有什么方法可以手动指定软件包版本来解决此问题?
## ui.R
shinyUI(bootstrapPage(
ggvisOutput("p"),
uiOutput("p_ui")
))
## server.R
shinyServer(function(input, output, session) {
input_width <- reactive(input$width)
mtcars %>%
ggvis(~mpg) %>%
layer_histograms(width = input_width) %>%
bind_shiny("ggvis", "ggvis_ui")
})
## When located in folder with ui.R and server.R file:
library("shiny")
library("shinyapps")
deployApp() # command that fails
错误摘录:
...
[2014-10-28T16:05:00.464944786+0000] Building R package: dplyr (0.3.0.2)
/mnt/packages/build /mnt
* installing to library ‘/usr/local/lib/R/site-library’
* installing *source* package ‘dplyr’ ...
** package ‘dplyr’ successfully unpacked and MD5 sums checked
** libs
Error: package ‘Rcpp’ 0.11.2 was found, but >= 0.11.3 is required by ‘dplyr’
* removing ‘/usr/local/lib/R/site-library/dplyr’
################################### End Log ###################################
Error: Unhandled Exception: Child Task 2477816 failed: Error building image: Error building dplyr (0.3.0.2). Build exited with non-zero status: 1
Execution halted
会话信息:
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 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
讯息
错误:找到软件包“ Rcpp” 0.11.2,但“ dplyr”要求> = 0.11.3
表示您使用的是R的旧版本(可能是3.0.2吗?),它在仅包含Rcpp 0.11.2的树中搜索。
修复很简单:升级R。然后安装依赖项,包括Rcpp
with的最新版本install.packages("Rcpp")
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句