无法安装“ flexdashboard软件包” [英] Cannot install "flexdashboard package"

查看:111
本文介绍了无法安装“ flexdashboard软件包”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试安装flexdashboard软件包,但出现错误消息:

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

这里是代码:

devtools::install_github("rstudio/flexdashboard") 

错误消息:

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)


推荐答案

它似乎崩溃了,因为它试图更新摘要所依赖的软件包,由于使用中而无法删除。

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.

关闭R,然后导航至 C:/ Users /Nicholas/Documents/R/win-library/3.2 并删除 digest 文件夹。然后,启动R并再次尝试安装。

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.

这篇关于无法安装“ flexdashboard软件包”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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