R - 无法访问存储库 https://macos.rbind.org/src/contrib 的索引



我正在尝试在macOS上安装Rattle(链接(:

system('brew install gtk+')
local({
if (Sys.info()[['sysname']] != 'Darwin') return()
.Platform$pkgType = 'mac.binary.el-capitan'
unlockBinding('.Platform', baseenv())
assign('.Platform', .Platform, 'package:base')
lockBinding('.Platform', baseenv())
options(
pkgType = 'both', install.packages.compile.from.source = 'always',
repos = 'https://macos.rbind.org'
)
})
install.packages(c('RGtk2', 'cairoDevice', 'rattle'))

但是我收到以下错误:

Warning in install.packages :
unable to access index for repository https://macos.rbind.org/src/contrib:
cannot open URL 'https://macos.rbind.org/src/contrib/PACKAGES'
Warning in install.packages :
unable to access index for repository https://macos.rbind.org/src/contrib:
cannot open URL 'https://macos.rbind.org/src/contrib/PACKAGES'
Warning in install.packages :
packages ‘RGtk2’, ‘cairoDevice’, ‘rattle’ are not available (for R version 3.6.2)
Warning in install.packages :
unable to access index for repository https://macos.rbind.org/bin/macosx/el-capitan/contrib/3.6:
cannot open URL 'https://macos.rbind.org/bin/macosx/el-capitan/contrib/3.6/PACKAGES'

查看上述错误,我看到的是取代:

packages ‘RGtk2’, ‘cairoDevice’, ‘rattle’ are not available (for R version 3.6.2)

当我在基于 R 3.6.2 的 Windows 上安装嘎嘎声时。

macos.rbind.org 似乎不再处于活动状态。也许尝试 macos.rbind.io。也就是说,替换

repos = 'https://macos.rbind.org'

repos = 'https://macos.rbind.io'

相关内容

  • 没有找到相关文章

最新更新