Cannot install “flexdashboard package”

痞子三分冷 提交于 2019-12-13 02:23:12

问题


I tried installing the flexdashboard package but an error message came up:

Here is the code:

devtools::install_github("rstudio/flexdashboard") 

Error Message:

Downloading GitHub repo rstudio/flexdashboard@master
Installing flexdashboard
Installing 1 packages: digest
package ‘digest’ successfully unpacked and MD5 sums checked
Warning: cannot remove prior installation of package ‘digest’
"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore  \
  CMD INSTALL  \
  "C:/Users/Nicholas/AppData/Local/Temp/RtmpekRfW3/devtools3e9457ae3791/rstudio-flexdashboard-e68ac39"  \
  --library="C:/Users/Nicholas/Documents/R/win-library/3.2" --install-tests 

* installing *source* package 'flexdashboard' ...
** R
** inst
** tests
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  there is no package called 'digest'
ERROR: lazy loading failed for package 'flexdashboard'
* removing 'C:/Users/Nicholas/Documents/R/win-library/3.2/flexdashboard'
Error: Command failed (1)

回答1:


It seems to be crashing because it tries to update the digest package upon which it depends, and fails to remove it because it's in use.

Close R and then navigate to C:/Users/Nicholas/Documents/R/win-library/3.2 and delete the digest folder. Then, launch R and try the install again.



来源:https://stackoverflow.com/questions/36533880/cannot-install-flexdashboard-package

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!