This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Setting A Proxy In R

I'm not sure if it is the right place to ask this question; it might be better at stackoverflow, but I'm not sure they know well R.

What I would like to know, is how I might specify R to use a proxy. I haven't found were I could set that.

I am working on an ubuntu 11.10 system. As a normal user, everything is OK; but some packages have been installed using apt-get with root privileges.

And now they can't be updated when I am using R as a normal user.

I need to call R with sudo; but when I try to use biocLite, for example, I get the following error; which is normal since I access internet through a proxy.

source("http://bioconductor.org/biocLite.R") Erreur dans file(filename, "r", encoding = encoding) : impossible d'ouvrir la connexion De plus : Message d'avis : In file(filename, "r", encoding = encoding) : connexion à 'bioconductor.org' impossible sur le port 80.

Does anyone know what command should I issue to have the proxy set ?

Thanks for your help.

r

before running "R" , under linux, run the following command: export http_proxy=http://yourproxypath:youproxyport"

1 answer

A lot of posts, discuss about this. Check this, this, this, on stackoverflow and on BioC lists. There are lot of other results as well.

Also, I am not able to open the BioC yet, may be there server is down for the time being.

Cheers

Log in to answer this question.