This post refers to R proxy server issues on * nix. You should know that R has many libraries / methods for receiving data over the Internet.
For "curl", "libcurl", "wget", etc. just follow these steps:
Open a terminal. Enter the following command:
sudo gedit /etc/R/Renviron.site
Enter the following lines:
http_proxy='http://username:password@abc.com:port/' https_proxy='https://username:password@xyz.com:port/'
Replace username , password , abc.com , xyz.com and port with these settings specific to your network.
Close R and run again.
This should solve your problem with the libcurl and curl methods. However, I have not tried it using "httr". One way to do this with "httr" is for this session only:
library(httr) set_config(use_proxy(url="abc.com",port=8080, username="username", password="password"))
You need to substitute the settings specific to your n / w in the appropriate fields.
adityakaran Apr 24 '16 at 6:25 2016-04-24 06:25
source share