I currently set the Bioconductor repository in my .Rprofile using this
code (which needs editing for every version number change of
Bioconductor):

# Choose repositories
repos <- structure(c(CRAN="http://streaming.stat.iastate.edu/CRAN";,
                     CRANextra="http://www.stats.ox.ac.uk/pub/RWin";,
                     BioCsoft="http://www.bioconductor.org/packages/2.7/bioc";,
                     Rforge="http://r-forge.r-project.org";))
options(repos=repos)
rm(repos)

I'd like to avoid editing the version number.  One hack to do so is
this code that adds all repositories.

setRepositories(ind=1:10)
r <- getOption("repos")
r <- r[!is.na(r)]
options(repos=r)

Is there a simpler way?  I've searched for quite a while without
finding an answer.


Incidentally, the help page for "options" says:
A Bioconductor mirror can be selected by setting
options("BioC_mirror"): the default value is
"http://www.bioconductor.org";.
The word "default" is a bit confusing here, because when I start R, I see:

R> options()$BioC_mirror
NULL


-- 
Kevin Wright

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to