Installing / Upgrading R thru a http proxy on OS X
Having upgraded my version of R to 2.5.1, I was intent on not having to go home and upgrade my packages but I have always had some troubles getting the http_proxy to work on OS X for R in UL. After following a few fruitless suggestions from the web, I finally stumbed upon the correct way that works for UL.
1) Open Terminal and do the following:
export http_proxy=http://staff-proxy.ul.ie:8080
export HTTP_PROXY=http://staff-proxy.ul.ie:8080
2) Run R and do the following:
Sys.setenv(http_proxy="http://staff-proxy.ul.ie:8080")
double-check this with:
Sys.getenv("http_proxy")
It should work happily now, I think the major problem is you need to export the items in Terminal before running R.
1) Open Terminal and do the following:
export http_proxy=http://staff-proxy.ul.ie:8080
export HTTP_PROXY=http://staff-proxy.ul.ie:8080
2) Run R and do the following:
Sys.setenv(http_proxy="http://staff-proxy.ul.ie:8080")
double-check this with:
Sys.getenv("http_proxy")
It should work happily now, I think the major problem is you need to export the items in Terminal before running R.
Labels: http_proxy, R, R OS X proxy
3 Comments:
I also just realised that: http_proxy is case sensitive for some apps. It was debootstrap which required the lowercase "http_proxy" in my situation. I simply added it to /etc/profile.
-steviewdr
By Anonymous, at 5:51 p.m.
Thanks Stephen, I'll remember that!
Good to know there is at least one other person around here using R!
By Eoin Brazil, at 6:22 p.m.
This was VERY helpful! I thought the problem was in R but it was the ENVIRONMENT variables! The bioconductor website was wrong!
I'm in Fedora over VMWARE on Windows XP.
- Slade
By Anonymous, at 5:35 a.m.
Post a Comment
<< Home