无法连接到 bioconductor 网站

Unable to connect to bioconductor website

I 运行 RStudio (0.99.878) 与 R 版本 R-3.2.3 on Windows 7.

当我尝试使用以下命令从 bioconductor 安装软件包时,我收到一条错误消息:

source("http://bioconductor.org/biocLite.R") Error in file(filename, "r", encoding = encoding) :
cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
unable to connect to 'bioconductor.org' on port 80.

我认为这是代理 settings/firewall 的问题,但完全相同的代码在 R 中的 运行 时工作正常(它给了我一个警告('lib = "C:/Program Files/R/R-3.2.3/library"' 不可写), 但询问我是否要将其保存在另一个文件夹中,然后它起作用了)。

我尝试 运行以管理员身份使用 RStudio,但我也取消选中 "Use Internet Explorer library/proxy for HTTP",因为这些步骤在别处被推荐用于解决此问题,但没有帮助。

所以本地 IT 管理员就在这里并更改了 RStudio 的设置(右键单击 RStudio -> 属性 -> ...),但没有帮助。 在尝试代码是否有效时,我从 bioconductor 网站复制了它并且有效:不同之处在于它在我的原始代码中使用 https 而不是 http!

source("https://bioconductor.org/biocLite.R")

我在使用

下载文件时遇到了同样的问题
> source("http://www.statmethods.net/RiA/wmc.txt")
Error in file(filename, "r", encoding = encoding) : 
  cannot open the connection
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
  InternetOpenUrl failed: '安全频道支持出错'

那我试试

> options(download.file.method="libcurl", url.method="libcurl")
> source("http://www.statmethods.net/RiA/wmc.txt")
> wmc

有效