【问题标题】:How to set proxy in R ( ubuntu)如何在 R ( ubuntu ) 中设置代理
【发布时间】:2013-03-05 22:46:11
【问题描述】:

高拉夫·潘迪

我使用了命令

Sys.setenv(http_proxy="http://myusername:pswd@host:port")

它一开始就奏效了。 但是在终端中重新启动它时显示以下错误。-

 cannot open: HTTP status was '407 Proxy Authentication Required

如何解决这个问题。帮助,,,

【问题讨论】:

  • 可能是 superuser.com 的问题?

标签: r ubuntu proxy cran bioconductor


【解决方案1】:

你为运行 R 的进程设置环境。当 R 的实例退出时,进程消失,环境消失。

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

将这些命令放在/etc/profile~/.bash_profile 中:

export http_proxy
http_proxy=http://myusername:pswd@host:port

或全部在一行(bash):

export http_proxy=http://myusername:pswd@host:port

或者在启动R之前在shell中运行命令。

【讨论】:

    猜你喜欢
    • 2023-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-17
    • 2015-04-18
    • 1970-01-01
    相关资源
    最近更新 更多