What is the impact or value of listing multiple repositories in .Options$repos, in R?
Asked Answered
M

2

4

I noticed that this answer to a question about .Rprofile settings mentions setting two repositories for 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.)

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.


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.

Mcmillan answered 22/10, 2011 at 3:55 Comment(0)
N
3

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) 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.

It is a good idea to know how to access the CRAN package check page.

Nikkinikkie answered 22/10, 2011 at 5:30 Comment(2)
I only ever use the main CRAN mirror in Austria - it's just not worth the chance of getting an out of date package to me.Eyler
@Eyler That's very useful advice. I don't specifically refer to the one in Austria, but my default repository appears to be the same - just "cran.r-project.org" (the IP addresses are the same for cran.at.r-project.org and cran.r-project.org).Mcmillan
M
0

If fault tolerance and flexibility is important, it can be useful to set local, internal, and remote repos.

repos["CRAN"] <- c("file://opt/cran","https://cran.example.com","https://cran.r-project.org")
Microelement answered 14/7, 2019 at 7:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.