Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation error devtools::install_github("ytakemon/GRETTA") #39

Open
ytakemon opened this issue Oct 8, 2024 · 0 comments
Open

Installation error devtools::install_github("ytakemon/GRETTA") #39

ytakemon opened this issue Oct 8, 2024 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@ytakemon
Copy link
Owner

ytakemon commented Oct 8, 2024

Users may encounter an error message when installing. The error message may looks similar to this:

Using github PAT from envvar GITHUB_PAT. Use `gitcreds::gitcreds_set()` and unset GITHUB_PAT in .Renviron (or elsewhere) if you want to use the more secure git credential store instead.
Error: Failed to install 'GRETTA' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 0/60
  Rate limit reset at: 2024-10-08 21:59:39 UTC

  To increase your GitHub API rate limit
  - Use `usethis::create_github_token()` to create a Personal Access Token.
  - Use `gitcreds::gitcreds_set()` to add the token.

Solution:

  1. Unset your GitHub environment with Sys.unsetenv("GITHUB_PAT")
  2. Re-run: devtools::install_github("ytakemon/GRETTA")
@ytakemon ytakemon self-assigned this Oct 8, 2024
@ytakemon ytakemon added the bug Something isn't working label Oct 8, 2024
@ytakemon ytakemon added the documentation Improvements or additions to documentation label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant