从Github安装Timeout R软件包 [英] Timeout R package installation from Github

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

问题描述

我试图用github安装一个包含 devtools 包的R包。
但是我每次都会遇到来自curl的超时错误!
$ b

I'm trying to install a package from github for R with devtools package. But I'm encountering Timeout error from curl each time!


install_github('ramhiser / datamicroarray')



Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
  Timeout was reached

任何想法为什么发生这种情况?任何帮助将不胜感激。

Any Idea why this happens? Any help will be appreciated.

推荐答案

当我想下载这个软件包时,需要很长时间才能获得连接,但最终它按预期工作。另一种可能性是下载压缩文件,然后进行安装。

When I want to download this package it also takes long to get a connection but in the end it works as expected. Another possibility is to download the zip file and then install it.

要在下载后安装软件包,请使用以下代码:

To install the package after downloading, the following code works:

install.packages("/address/to/zip-package", repos = NULL, type="source")

并且将下载的软件包的地址写入 / address / to / zip-package ,或者使用RStudio和Packages - > Install。

and write the address of the downloaded package in place of /address/to/zip-package, or use RStudio and Packages -> Install.

这篇关于从Github安装Timeout R软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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