Gaurav Pandey
I used the command
Sys.setenv(http_proxy="http://myusername:pswd@host:port")
and it worked at first. But on restarting It in the Terminal it showed the following error.-
cannot open: HTTP status was '407 Proxy Authentication Required
How to resolve this issue.Help,,,
You set the environment for the process running R. When the instance of R exits, the process goes away, and the environment is gone.
You cannot set the environment for a parent process.
Put these commands in /etc/profile
or ~/.bash_profile
instead:
export http_proxy
http_proxy=http://myusername:pswd@host:port
Or all on one line (for bash
):
export http_proxy=http://myusername:pswd@host:port
Or run the commands in the shell before starting R
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.