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

Error installing the package #28

Open
diogoprov opened this issue May 17, 2024 · 3 comments
Open

Error installing the package #28

diogoprov opened this issue May 17, 2024 · 3 comments

Comments

@diogoprov
Copy link

Hi,
I'm having a hard time trying to install the package, I'm using R 4.3.3 in a M1 MacBook . This is the error when I try to install it, the same happens if I use remotes:: instead of devtools::

> devtools::install_github("pennell-lab-ubc/arbutus")
Using GitHub PAT from the git credential store.
Error: Failed to install 'unknown package' from GitHub:
  HTTP error 401.
  Bad credentials

  Rate limit remaining: 57/60
  Rate limit reset at: 2024-05-17 14:14:11 UTC

Any ideas?

Thanks

@richfitz
Copy link
Collaborator

This usually means that your github token has expired or does not have the required permissions. Try usethis::gh_token_help() to diagnose

@diogoprov
Copy link
Author

diogoprov commented May 20, 2024

Yes, indeed. Once I did this, it worked again:

Sys.setenv(GITHUB_PAT = "")

@richfitz
Copy link
Collaborator

You should delete and reset that token immediately - don't post it anywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants