美文网首页
R4.0.03中的devtools::install_githu

R4.0.03中的devtools::install_githu

作者: Z_bioinfo | 来源:发表于2023-05-04 19:29 被阅读0次

    我最近升级到了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")
    

    成功解决

    相关文章

      网友评论

          本文标题:R4.0.03中的devtools::install_githu

          本文链接:https://www.haomeiwen.com/subject/xozxsdtx.html