devtools::install_github()無法安裝問題


devtools::install_github('royfrancis/pophelper')
Downloading GitHub repo royfrancis/pophelper@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL 'https://api.github.com/repos/royfrancis/pophelper/tarball/master'

對於這個問題,大家可以試試下面的方法:

引自:https://github.com/r-lib/remotes/issues/130

如果還是不行,試試下面這個方法,把包下載到本地進行安裝,我是用這種方法解決的:

輸入

后面的royfrancis/pophelper可以根據自己的需求更改相應的作者名/包名.

然后進行本地安裝:

例如在Rstudio里面:

就可以啦。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM