[R] R-2.6.0 - packages installation through a proxy - not working

From: Liviu Andronic <landronimirc_at_gmail.com>
Date: Tue, 16 Oct 2007 15:41:21 +0200


Hello everyone,

I run R on Gentoo Linux and this week I upgraded R from 2.5.0 to 2.6.0. With the new build, I have stumbled upon an unpleasant problem: I can no longer install packages from CRAN through a transparent proxy. With the previous version, I simply added to /usr/lib/R/etc/Renviron the following line and it functioned like a charm:
## Proxy settings
http_proxy="SERVER:3128"

With 2.6.0, however, R refuses to connect to the CRAN mirror. I have added to the new Renviron even more lines (useless, probably). Now the Proxy settings look like this:
## Proxy settings
http_proxy="SERVER:3128"
https_proxy="SERVER:3128"
ftp_proxy="SERVER:3128"

I also tried - with no luck - to use the following command at the start of the R session:
Sys.setenv(http_proxy="SERVER:3128")

I get the following error message:
> install.packages("Rcmdr", dependencies=TRUE)
--- Please select a CRAN mirror for use in this session --- Error in open.connection(file, "r") : unable to open connection In addition: Warning message:
In open.connection(file, "r") :
  unable to connect to 'cran.r-project.org' on port 80. Loading Tcl/Tk interface ... done
Warning: unable to access index for repository
http://cran.stat.unipd.it/src/contrib
Warning message:
In install.packages("Rcmdr", dependencies = TRUE) :   package 'Rcmdr' is not available

So, is this a bug in R-2.6.0 or did anything change in the way these settings are handled?

Regards,
Liviu



R-help_at_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. Received on Tue 16 Oct 2007 - 13:54:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 16 Oct 2007 - 14:36:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.