contrib.url(getOption('repos'), type=.Platform$pkgType) [1] "https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4"...">

Drat doesn't know about mac.binary.el-capitan · Issue #64 · eddelbuettel/drat (original) (raw)

macOS R now looks in "bin/macosx/el-capitan/contrib", not "mavericks".

R> contrib.url(getOption('repos'), type=.Platform$pkgType)
[1] "https://cloud.r-project.org/bin/macosx/el-capitan/contrib/3.4"  

It seems this stems from the fact that on R 3.4, .Platform$pkgType returns "mac.binary.el-capitan", but getPathForPackage doesn't know about this. This is documented deep in the R documentation about package installation.