1

我试图安装新发布的名为“BelgiumStatistics”的 R 包。该软件包包含比利时统计局发布的所有数据集(Bevolking、Werk、Leefmilieu、Census 2011)。数据和包的相关信息可通过此处附加的几个链接获得:

1.比利时开放数据——BelgiumStatistics R包发布

2. 比利时的开放数据 - 在 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")

我已经看到这里讨论的几个问题,例如:

install_github 不起作用

使用 install_github 时出错 | 开发工具 | 超时问题

解决方案。有代理时如何安装_github

但它们在我的情况下没有用,因为我在代理或从 Cran 下载其他包方面没有任何问题。顺便说一句,我在 Windows 7 上使用 RStudio(版本 0.99.486)和 R 版本 3.2.2(2015-08-14),并且我安装了最新版本的 Rtools(Rtools33)。

我想知道是这个大约 100MB 的包的问题还是 GitHub 本身的问题。我从 GitHub 下载了该软件包,并尝试从 zip 文件安装该软件包,甚至将其直接粘贴到我安装了所有其他库的位置(即 C:\Users\xxx\Documents\R\win-library)但是它也失败了。那么,有什么解决办法呢?

4

0 回答 0