【发布时间】:2018-01-31 15:24:17
【问题描述】:
我升级到 R 版本 3.4.3,但我无法再安装和使用 devtools - 似乎是因为安装 digest 时出现问题。我收到以下错误:
install.packages("devtools", dependencies = TRUE)
Warning in install.packages :
dependency ‘BiocInstaller’ is not available
also installing the dependency ‘digest’
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/digest_0.6.15.tgz'
Warning in install.packages :
cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/digest_0.6.15.tgz': HTTP status was '404 Not Found'
Error in download.file(url, destfile, method, mode = "wb", ...) :
cannot open URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/digest_0.6.15.tgz'
Warning in install.packages :
download of package ‘digest’ failed
trying URL 'https://cran.rstudio.com/bin/macosx/el-capitan/contrib/3.4/devtools_1.13.4.tgz'
Content type 'application/x-gzip' length 439078 bytes (428 KB)
我已经卸载并重新安装了 R,升级了 RStudio,手动删除了devtools 并尝试重新安装。我在 Mac 10.12.6 Sierra 上。任何帮助表示赞赏。
【问题讨论】:
-
要解决这个问题,您可以简单地运行:
install.packages("digest", type = "source")。