2013-03-17 35 views
2

拉夫·潘迪如何设置代理的R(Ubuntu的)

我用命令

Sys.setenv(http_proxy="http://myusername:[email protected]:port") 

,它工作在第一。 但在终端重新启动它,它呈现出以下error.-

cannot open: HTTP status was '407 Proxy Authentication Required 

如何解决这个issue.Help ,,,

+1

可能是superuser.com的问题? – Arun 2013-03-17 15:36:58

回答

4

您运行R的过程中设置的环境。当实例R退出,过程消失,环境消失。

您不能为父进程设置环境。

把这些命令放到/etc/profile~/.bash_profile代替:

export http_proxy 
http_proxy=http://myusername:[email protected]:port 

或全部一行(为bash):

export http_proxy=http://myusername:[email protected]:port 

或启动R前在外壳的命令。