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 to a public server. I tried 1. local({r <- getOption("repos") r["CRAN"] <- c("CRAN"="http://local.cran.server", r) options(repos=r) }) -> install.packages offered the list of public mirrors 2. local({r <- getOption("repos") r["CRAN"] <- c(r, "CRAN"="http://local.cran.server") options(repos=r) }) -> packages are taken from cran.rstudio.com 3. local({r <- getOption("repos") r["CRAN"] <- c(r["CRAN"], "CRAN"="http://local.cran.server", r["CRANextra"]) options(repos=r) }) -> packages are taken from cran.rstudio.com None of the solutions worked under RStudio, the packages are always installed from the public servers. Any ideas? Thanks Sigbert ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.