简体   繁体   English

devtools::install_github 在 R4.0.03 中失败

[英]devtools::install_github failing in R4.0.03

I upgraded recently to R4.0.3 and devtools::install_github no longer seems to work.我最近升级到 R4.0.3 并且 devtools::install_github 似乎不再工作。 Eg.例如。

> install_github('MacoskoLab/liger')
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo MacoskoLab/liger@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/MacoskoLab/liger/tarball/HEAD' failed

or或者

install_github("NathanSkene/MAGMA_Celltyping")
Using github PAT from envvar GITHUB_PAT
Downloading GitHub repo NathanSkene/MAGMA_Celltyping@HEAD
Error in utils::download.file(url, path, method = method, quiet = quiet,  : 
  download from 'https://api.github.com/repos/NathanSkene/MAGMA_Celltyping/tarball/HEAD' failed

Not entirely clear to me whether it's devtools, or utils::download.file or R itself that's gone haywire here.我不完全清楚它是 devtools,还是 utils::download.file 或 R 本身在这里已经失控了。 Any suggestions welcome!欢迎任何建议!

Turns out that this problem was caused by the download timing out.原来这个问题是由下载超时引起的。 The repository in question is quite large (it contains datasets as well as code).有问题的存储库非常大(它包含数据集和代码)。 There is a default 60 second timeout for install_github. install_github 有一个默认的 60 秒超时。 Increasing this made it work:增加它使其工作:

options(timeout=9999999)
install_github("NathanSkene/MAGMA_Celltyping")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM