我无法从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
Run Code Online (Sandbox Code Playgroud)
这是我的会议:
R version 3.0.1 (2013-05-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Run Code Online (Sandbox Code Playgroud)
NB:install.packages像往常一样工作,只是与github问题.有没有人遇到过这个?谢谢
小智 8
我有同样的问题,我用过这个,它对我有用
library(downloader)
download("https://github.com/ropensci/plotly/archive/master.tar.gz", "plotly.tar.gz")
install.packages("plotly.tar.gz", repos = NULL, type = "source")
Run Code Online (Sandbox Code Playgroud)
来自:http://healthvis.org/install/
使用上述说明时,某些用户遇到以下错误:函数错误(type,msg,asError = TRUE):无法连接到主机.这可能是由于使用代理(这会阻止您从github安装任何软件包),并且可以使用httr软件包进行纠正.在上面的install_github(...)之前运行以下命令:
install.packages("httr")
library(devtools)
library(httr)
set_config(use_proxy(url="http://proxyname.company.com",port=8080,username="XXX",password="XXX"))
install_github("cranvas")
Run Code Online (Sandbox Code Playgroud)
希望这可以帮助.
| 归档时间: |
|
| 查看次数: |
8913 次 |
| 最近记录: |