在 R 中的 .Options$repos 中列出多个存储库的影响或价值是什么? [英] What is the impact or value of listing multiple repositories in .Options$repos, in R?

查看:57
本文介绍了在 R 中的 .Options$repos 中列出多个存储库的影响或价值是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到这个答案关于 .Rprofile 设置的问题提到为 CRAN 设置两个存储库.

I noticed that this answer to a question about .Rprofile settings mentions setting two repositories for CRAN.

这样做有什么好处,例如一个站点可能关闭,然后另一个站点被访问?好像CRAN镜像是一样的或者最终是镜像,正常运行时间好像很好,那么还有没有其他优势呢?(我意识到 OmegaHat 和 Bioconductor 有自己的存储库,所以我专注于 CRAN.)

Is there any benefit to doing so, such as the possibility of one site being down, then another is accessed? It seems that the CRAN mirrors are identical or eventually mirrors, and uptime seems very good, so are there any other advantages? (I realize OmegaHat and Bioconductor have their own repositories, so I'm focusing on CRAN.)

可以说 CRAN 是用于稳定版本而 R-Forge 是一个暂存区吗?如果是这样,那么将 R-Forge 作为存储库似乎更适合用于 Beta 测试各种包的实例.

Is it fair to say that CRAN is for stable releases and R-Forge is a staging area? If so, then it seems that including R-Forge as a repository is more suitable for instances of beta testing various packages.

更新 1:这篇文章有一些比较镜像的良好链接,特别是确定两个或多个镜像是否不同步(即过时).这是有关镜像可用性状态信息的直接链接,尽管它没有't 在镜像上反映包裹的状态.Dirk 的回答对于确定所提供的包裹中的差异很有用.

Update 1: This post has some good links on comparing mirrors, especially determining if two or more mirrors are out of sync (i.e. outdated). This is the direct link for information on the availability status of mirrors, though it doesn't reflect the status of packages on the mirrors. Dirk's answer is useful for determining discrepancies in the packages offered.

推荐答案

A) 我认为拥有多个存储库没有任何特别的优势.如果您选择了一个可靠的,它已经落后于时代或暂时停止服务.访问另一个非常简单.我通常使用 CMU 存储库,但 Berkeley 存储库似乎也很可靠.

A) I don't see any particular advantage to having multiple repositories. If you choose a reliable one and it is behind the times or temporarily out of service. it is pretty much trivial to access another. I generally use the CMU repository, but the Berkeley repo also seems reliable.

B) 同意 CRAN(或镜像)用于稳定版本,而 r-forge 是暂存区".如果您需要更新的版本或不可用的版本,那么 r-forge 是第一个可以咨询的位置.也可以访问 bioconductor repos.

B) Agree that CRAN (or mirrors) is for stable releases and r-forge is a "staging area". If you need a more recent version or one that is not available, then r-forge is the first location to consult. The bioconductor repos may also be accessed.

了解如何访问 CRAN 包检查页面.

这篇关于在 R 中的 .Options$repos 中列出多个存储库的影响或价值是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆