MRAN坏了吗?
Is MRAN broken?
我一直在尝试从 MRAN 安装软件包,特别是 bsts 等。如果我 运行:
install.packages(c("Boom","BoomSpikeSlab", "bsts"),repos = "https://mran.revolutionanalytics.com/snapshot/2016-01-01/")
我得到以下输出:
Warning in install.packages :
URL 'https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3/PACKAGES.gz': status was '404 Not Found'
Warning in install.packages :
URL 'https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3/PACKAGES': status was '404 Not Found'
Warning in install.packages :
unable to access index for repository https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3:
cannot download all files
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘Boom’ ‘BoomSpikeSlab’ ‘bsts’
Do you want to attempt to install these from sources?
y/n:
我在使用 options()
更改存储库位置时也得到了相同的结果。一个简单的解决方案是简单地从源安装如下:
install.packages(c("Boom","BoomSpikeSlab", "bsts"),repos = "https://mran.revolutionanalytics.com/snapshot/2016-01-01/",type = "source")
然而,没有意义的是,当您在浏览器上检查存储库时,二进制文件似乎可用:
https://cran.r-project.org/web/packages/bsts/index.html (CRAN)
https://mran.revolutionanalytics.com/snapshot/2016-01-01/web/packages/bsts/index.html(MRAN)
此外,我不想编译源代码,especially as R's compiler is out of date...
以前 stack overflow questions 认为这是因为存储库已关闭,但这没有意义,因为可以通过浏览器访问二进制文件。那么MRAN有问题吗,install.packages
有问题吗?
我应该注意到我已经尝试通过终端在 RStudio 和 R 中执行这段代码。此外,作为参考,这是我的系统详细信息:
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch
在此先感谢您的帮助。
我现在已经解决了这个问题。当使用 install.packages
从 MRAN 存储库调用时,您需要将 URL 的 "MRAN" 部分大写。
所以这有效:
install.packages("bsts", repos = "https://MRAN.revolutionanalytics.com/snapshot/2016-06-01/")
这仅适用于来源:
install.packages("bsts", repos = "https://mran.revolutionanalytics.com/snapshot/2016-06-01/")
我一直在尝试从 MRAN 安装软件包,特别是 bsts 等。如果我 运行:
install.packages(c("Boom","BoomSpikeSlab", "bsts"),repos = "https://mran.revolutionanalytics.com/snapshot/2016-01-01/")
我得到以下输出:
Warning in install.packages :
URL 'https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3/PACKAGES.gz': status was '404 Not Found'
Warning in install.packages :
URL 'https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3/PACKAGES': status was '404 Not Found'
Warning in install.packages :
unable to access index for repository https://mran.revolutionanalytics.com/snapshot/2016-01-01/bin/macosx/mavericks/contrib/3.3:
cannot download all files
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘Boom’ ‘BoomSpikeSlab’ ‘bsts’
Do you want to attempt to install these from sources?
y/n:
我在使用 options()
更改存储库位置时也得到了相同的结果。一个简单的解决方案是简单地从源安装如下:
install.packages(c("Boom","BoomSpikeSlab", "bsts"),repos = "https://mran.revolutionanalytics.com/snapshot/2016-01-01/",type = "source")
然而,没有意义的是,当您在浏览器上检查存储库时,二进制文件似乎可用:
https://cran.r-project.org/web/packages/bsts/index.html (CRAN) https://mran.revolutionanalytics.com/snapshot/2016-01-01/web/packages/bsts/index.html(MRAN)
此外,我不想编译源代码,especially as R's compiler is out of date...
以前 stack overflow questions 认为这是因为存储库已关闭,但这没有意义,因为可以通过浏览器访问二进制文件。那么MRAN有问题吗,install.packages
有问题吗?
我应该注意到我已经尝试通过终端在 RStudio 和 R 中执行这段代码。此外,作为参考,这是我的系统详细信息:
platform x86_64-apple-darwin13.4.0
arch x86_64
os darwin13.4.0
system x86_64, darwin13.4.0
status
major 3
minor 3.2
year 2016
month 10
day 31
svn rev 71607
language R
version.string R version 3.3.2 (2016-10-31)
nickname Sincere Pumpkin Patch
在此先感谢您的帮助。
我现在已经解决了这个问题。当使用 install.packages
从 MRAN 存储库调用时,您需要将 URL 的 "MRAN" 部分大写。
所以这有效:
install.packages("bsts", repos = "https://MRAN.revolutionanalytics.com/snapshot/2016-06-01/")
这仅适用于来源:
install.packages("bsts", repos = "https://mran.revolutionanalytics.com/snapshot/2016-06-01/")