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里面:

就可以啦。
