CCICB / CRUX

Other
2 stars 1 forks source link

Github API issue when running remotes::install("CCICB/CRUX") #80

Closed selkamand closed 1 year ago

selkamand commented 1 year ago

Code:

 remotes::install("CCICB/CRUX")

Error message:

Error: Failed to install 'unknown package' from GitHub:
  HTTP error 403.
  API rate limit exceeded for <ip>. (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: 2023-03-01 06:05:56 UTC
  To increase your GitHub API rate limit
  - Use `usethis::create_github_token()` to create a Personal Access Token.
  - Use `usethis::edit_r_environ()` and add the token as `GITHUB_PAT`.
selkamand commented 1 year ago

Solutions:

  1. Wait until the rate limit reset time and try again (2023-03-01 06:05:56 UTC) in this example.
  2. I need to clean up the number of github package dependencies in my dependency tree. Fully switching over to assertions and getting it on CRAN should help a lot with this.

If theres anything we don't want to get on CRAN, we can also move more packages to the CCICB r-universe, which should also help

If you are reading this and have experienced the error after waiting the Rate limit reset time, please comment!

selkamand commented 1 year ago

Should be fixed now that installation is from r-universe. See readme for updated instructions