I’m trying to connect R from behind a proxy server.
I’ve tried various versions of feeding the proxy, port, user, pass to R with no luck including this example here.
Here’s my code and results:
> opts <- list(
+ proxy = "1111.2222.3333.4444",
+ proxyusername = "sss\\user",
+ proxypassword = "pass",
+ proxyport = 8080
+ )
> http_proxy=opts
> install.packages("randomForest")
Installing package(s) into ‘C:/Users/~/Documents/R/win-library/2.14’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
>
It then freezes and does nothing.
Any suggestions?
Also, are there any special issues if the username has a \ in it?
If you are using Windows you can set it up by defining the proxy in Internet Explorer and add –internet2 to the R startup shortcut (or add setInternet2(TRUE) to R\etc\RProfile.site) and then it uses the system wide settings.
If on Windows have you tried this? If not on Windows which OS are you using?