解除R中从github上下载包API限制的问题(Error: Failed to install ‘unknown package‘ from GitHub: HTTP error 403. )

最近在github上下载包,出现了API下载速率限制的问题,返回error 403,并要求使用github_token()取消api rate 的限制。这是因为github会扫描需要安装的依赖程序,如果数目超过他的api rate,github就会限制下载,解决办法是使用自己的token认证(相当于去github上认证一下,挂个号,然后给你安装)。我检索了一圈,发现很多人出现这个问题,但中文网络中没有解决办法,捣鼓了一天终于解决了。问题如下
# 从github上安装森林图软件ggforestplot出现403报错
> devtools::install_github("NightingaleHealth/ggforestplot", build_vignettes = TRUE)
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 403.
  API rate limit exceeded for 175.29.122.76. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)

  Rate limit remaining: 0/60
  Rate limit reset at: 2021-12-19 03:33:21 UTC

  To increase your GitHub API rate limit
  

你可能感兴趣的:(R相关,Troubleshooting,r语言,github,GitHub,API,rate)