如何解决devtools::install_github 在 R4.0.03 中失败
我最近升级到 R4.0.3 并且 devtools::install_github 似乎不再工作。例如...
> 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
或
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,:
download from 'https://api.github.com/repos/NathanSkene/MAGMA_Celltyping/tarball/HEAD' failed
我不完全清楚是 devtools、utils::download.file 还是 R 本身在这里出了问题。欢迎提出任何建议!
解决方法
原来这个问题是由下载超时引起的。有问题的存储库非常大(它包含数据集和代码)。 install_github 有一个默认的 60 秒超时。增加它使它起作用:
options(timeout=9999999)
install_github("NathanSkene/MAGMA_Celltyping")
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。