无法从github安装R-package [英] unable to install R-package from github

查看:754
本文介绍了无法从github安装R-package的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试从github安装flowIncubator包(链接到包: https://github.com / RGLab / flowIncubator )。我使用R版本3.3.1(2016-06-21)。
我试过这个代码:
devtools :: install_github(RGLab / flowIncubator)&得到此错误:

I'm trying to install a flowIncubator package from github (link to the package: https://github.com/RGLab/flowIncubator). I'm using R version 3.3.1 (2016-06-21). I've tried this code: devtools::install_github("RGLab/flowIncubator") & get this error:

  Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
      Timeout was reached
    > traceback()
    12: .Call(R_curl_fetch_disk, url, handle, path, "wb", nonblocking)
    11: curl::curl_fetch_disk(url, x$path, handle = handle)
    10: request_fetch.write_disk(req$output, req$url, handle)
    9: request_fetch(req$output, req$url, handle)
    8: request_perform(req, hu$handle$handle)
    7: httr::GET(url, path = path, httr::write_disk(path = tmp))
    6: remote_package_name.github_remote(remote)
    5: remote_package_name(remote)
    4: FUN(X[[i]], ...)
    3: vapply(remotes, install_remote, ..., FUN.VALUE = logical(1))
    2: install_remotes(remotes, quiet = quiet, ...)
    1: devtools::install_github("RGLab/flowIncubator")

我试图更新两个软件包devtools& curl,我试图更新R到较旧的版本,我试图下载.zip文件,并通过R studio&然后从库加载包。我也试过直接把包文件放到库中。
我使用了函数install.packages(),但是无法安装它。

I've tried to update both packages devtools & curl, I've tried to update R to an older version, I've tried to download the .zip file and install it through R studio & then load the package from the library. I've also tried directly putting the package file into the library. I've used functions install.packages(), but wasn't able install it.

推荐答案

我发现了问题。似乎我的DNS服务器非常慢,这是超时问题。

I've found the problem. It seems that my DNS server is extremely slow and that is making the timeout problem.

切换到Google等其他DNS伺服器解决了这个问题。

Switching to an alternative DNS server like Google solved the issue.

这篇关于无法从github安装R-package的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆