【发布时间】:2015-09-27 11:55:55
【问题描述】:
当我尝试使用 devtools 从 git-hub 下载和安装软件包时遇到了这个问题。
R 版本:3.1.3(64 位)
> install_github("hadley/httr")
Downloading github repo hadley/httr@master
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached
> traceback()
13: .Call(R_curl_fetch_memory, url, handle)
12: curl::curl_fetch_memory(url, handle = handle)
11: request_fetch.write_memory(req$output, req$url, handle)
10: request_fetch(req$output, req$url, handle)
9: request_perform(req, hu$handle$handle)
8: httr::HEAD(src_submodules, , auth)
7: github_has_remotes(x, auth)
6: remote_download.github_remote(remote, quiet = quiet)
5: remote_download(remote, quiet = quiet)
4: FUN(X[[1L]], ...)
3: vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
2: install_remotes(remotes, ...)
1: install_github("hadley/httr")
编辑:
我正在使用带有 Rstudio 客户端的 Revolution R Enterprise 7.4。
【问题讨论】:
-
尝试使用不同的镜像。我刚刚尝试使用镜像
CA-1进行安装,但没有收到此错误。此外,"hadley/httr"包似乎仅适用于 32 位 R。 -
你能下载和安装其他包吗?
-
@Roman Luštrik:不,我无法安装任何其他软件包。我尝试了“ropensci/plotly”,但也失败了
-
@Tim Biegeleisen:我刚刚用印度镜试了一下。它仍然无法正常工作。当我从 github 下载包时,这不应该独立于 CRAN 镜像吗?
-
即使命令:devtools::install_git("github.com/ropensci/plotly.git", branch = "dev")] 也不起作用。我收到的错误是 Error in git2r::clone(x$url, bundle, progress = FALSE) : Error in 'git2r_clone': failed to send request: The operation timed out
标签: r timeout devtools revolution-r