我曾尝试安装名为“BelgiumStatistics”的新发布的R软件包。该软件包包含统计比利时发布的所有数据集(Bevolking,Werk,Leefmilieu,Census 2011)。有关数据和包裹的相关信息可通过以下链接获得:
1. Open Data in Belgium - release of BelgiumStatistics R package
2. Open Data of Belgium - provided at GitHub
问题是我完全按照指令说的那样得到了超时错误:
library(devtools)
devtools::install_github("jwijffels/StatisticsBelgium", subdir ="BelgiumStatistics")
Downloading GitHub repo jwijffels/StatisticsBelgium@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[[i]], ...)
3: vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
2: install_remotes(remotes, ...)
1: devtools::install_github("jwijffels/StatisticsBelgium", subdir = "BelgiumStatistics")
我在这里讨论了几个问题,例如:
Error while using install_github | devtools | timeout issue
Solution. How to install_github when there is a proxy
但是在我的情况下它们没有用,因为我没有代理或从Cran下载其他软件包的任何问题。顺便说一句,我在Windows 7上安装了Rt 3.2.2(2015-08-14)的RStudio(版本0.99.486),并安装了最新版本的Rtools(Rtools33)。
我想知道这个包有大约100MB的问题还是GitHub本身的问题。我从GitHub下载了包,我尝试从zip文件安装包,甚至直接粘贴到我安装了所有其他库的地方(即C:\ Users \ xxx \ Documents \ R \ win-library)但是它也失败了。那么,可能是什么解决方案?