mwpennell / arbutus

Assessing the adequacy of phylogenetic models of quantitative trait evolution
7 stars 2 forks source link

Error installing the package #28

Open diogoprov opened 1 month ago

diogoprov commented 1 month ago

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 commented 1 month ago

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

diogoprov commented 1 month ago

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

Sys.setenv(GITHUB_PAT = "")
richfitz commented 1 month ago

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