Proxy Setting For R

How to use proxy for R?

proxy_url <- "http://127.0.0.1:61387/"
Sys.setenv(http_proxy = proxy_url, https_proxy = proxy_url, ftp_proxy = proxy_url)

you only need to record your proxy url and tell R by setting and you are all set, I believe it works for all people have restriction on their internet

cheers~~

How to check if R network proxy settings work?

I figured out the issue, the problem was the format of the http_proxy variable.

Incorrect: http_proxy="servername"

Correct: http_proxy="http://servername:80"

Thanks to all who took the time to check this issue.

R connect via proxy server

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?



Related Topics



Leave a reply



Submit