我最近升级到了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, path, method = method, quiet = quiet, :
download from 'https://api.github.com/repos/NathanSkene/MAGMA_Celltyping/tarball/HEAD' failed
这个问题是由下载超时引起的。所讨论的存储库非常大(它包含数据集和代码)。install_github的默认超时时间为60秒。增加该值可使其正常工作:
options(timeout=9999999)
install_github("NathanSkene/MAGMA_Celltyping")
成功解决