R 从github安装包时出错

R 从github安装包时出错,r,github,R,Github,我无法从github安装程序包: > install_github('cranvas', 'ggobi', args="--no-multiarch") Installing github repo(s) cranvas/master from ggobi Installing cranvas.zip from https://github.com/ggobi/cranvas/archive/master.zip Error in function (type, msg, asError

我无法从github安装程序包:

> install_github('cranvas', 'ggobi', args="--no-multiarch")
Installing github repo(s) cranvas/master from ggobi
Installing cranvas.zip from https://github.com/ggobi/cranvas/archive/master.zip
Error in function (type, msg, asError = TRUE)  : couldn't connect to host
这是我的课程:

R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)

注意:
install.packages
正常工作,只是github的问题。你们中的一些人曾经面对过这种情况吗?谢谢

GitHub不再支持HTTP。这在几年前就被禁用了,它可能已经与。我的测试如下:

curl -i http://github.com/ggobi/cranvas/archive/master.zip
HTTP/1.1 301 Moved Permanently
Server: GitHub.com
Date: Mon, 26 Aug 2013 03:15:17 GMT
Content-Type: text/html
Content-Length: 178
Connection: close
Location: https://github.com/ggobi/cranvas/archive/master.zip
Vary: Accept-Encoding

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>
curl-ihttp://github.com/ggobi/cranvas/archive/master.zip
HTTP/1.1 301永久移动
服务器:GitHub.com
日期:2013年8月26日星期一03:15:17 GMT
内容类型:text/html
内容长度:178
连接:关闭
地点:https://github.com/ggobi/cranvas/archive/master.zip
改变:接受编码
301永久搬迁
301永久搬迁

nginx
注意301和HTTPS作为替换URL。

来自:

某些用户在使用上述说明时遇到以下错误:函数错误(type,msg,asError=TRUE):无法连接到主机。这可能是由于使用了代理(这将阻止您从github安装任何软件包),并且可以使用httr软件包进行纠正。在上面安装_github(…)之前,请运行以下命令:


希望这有帮助。

我也有同样的问题,我使用了这个,它对我有效

    library(downloader)
    download("https://github.com/ropensci/plotly/archive/master.tar.gz", "plotly.tar.gz")
    install.packages("plotly.tar.gz", repos = NULL, type = "source")

你在使用代理服务器吗?检查是否可以使用浏览器或
wget下载https://github.com/ggobi/cranvas/archive/master.zip
是的,我可以确认终端无法获取url。我认为这不是一个问题,因为我可以使用从cran安装,我还可以从mozilla下载master.zip(然后解压并重新压缩为tar.gz进行安装)。那么
install\u url(“http://github.com/ggobi/cranvas/archive/master.zip“,“cranvas”)
?@Salem相同的结果unfortunately@Hadley我也犯了同样的错误。我四处搜寻并尝试了很多东西,包括
GIT\u SSL\u NO\u VERIFY
,但到目前为止运气不佳。有什么想法吗?谢谢,抱歉耽搁了。谢谢你的回答。
    library(downloader)
    download("https://github.com/ropensci/plotly/archive/master.tar.gz", "plotly.tar.gz")
    install.packages("plotly.tar.gz", repos = NULL, type = "source")