没有消化R,无法正确安装devtools

时间:2018-01-31 15:24:18

标签: r devtools

我升级到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。任何帮助表示赞赏。

1 个答案:

答案 0 :(得分:0)

运行install.packages("digest", type = "source")。它记录在digest GitHub上。