RShiny安装错误:软件包“ shiny”的延迟加载失败

时间:2018-11-27 18:22:24

标签: r shiny

我正在尝试安装Shiny软件包,但出现此错误

Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'httpuv' 1.4.1 is being loaded, but >= 1.4.4 is required
ERROR: lazy loading failed for package 'shiny'
* removing 'C:/Users/ikum/Documents/R/win-library/3.3/shiny'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\ikum\Documents\R\win-library\3.3" C:\Users\ikum\AppData\Local\Temp\RtmpcbANIA/downloaded_packages/shiny_1.2.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘shiny’ had non-zero exit status

即使我尝试使用targz文件下载httpuv的最新版本,它仍将是1.4.1版本。我也删除了httpuv,并手动以及从CRAN信息库中重新安装了它。似乎什么都没用。

我还拥有最新版本或RStudio和R。

有解决方案吗?

1 个答案:

答案 0 :(得分:2)

您可以尝试添加type = "binary"参数:

install.packages("shiny", type ="binary")