Re: [R] Setting two default CRAN servers under Windows/RStudio

2015-06-25 Thread Sigbert Klinke
Hi, I tried the following: local({r <- getOption("repos") r["CRAN"] <- "http://local.cran.server/"; r["MIRROR"] <- "http://cran.mirror/"; options(repos=r) }) But: R seems always to take the "CRAN" entry first, therefore I put our local mirror there. If a R session starts

Re: [R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Thierry Onkelinx
We have this in our Rprofile.site This works fine. It checks each mirror and installs (or updates) the latest version available on all mirrors. e.g. abc 0.1 on RStudio and abc 0.2 on RForge, then abc 0.2 from RForge gets installed/updated. options( repos = c( RStudio = "http://cran.rstudio.c

Re: [R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Duncan Murdoch
On 19/06/2015 8:14 AM, Sigbert Klinke wrote: > Hi, > > we are running in our network a non-public CRAN mirror. I got it working > with the entry in "Rprofile.site" > > local({r <- getOption("repos") >r["CRAN"] <- "http://local.cran.server"; >options(repos=r) > }) > > In case that

[R] Setting two default CRAN servers under Windows/RStudio

2015-06-19 Thread Sigbert Klinke
Hi, we are running in our network a non-public CRAN mirror. I got it working with the entry in "Rprofile.site" local({r <- getOption("repos") r["CRAN"] <- "http://local.cran.server"; options(repos=r) }) In case that our CRAN mirror does not work we want to send the R/RStudio users