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

installing seurat-data with this error msg "Failed to install 'unknown package' from GitHub" #92

Open
linpei26 opened this issue May 30, 2024 · 2 comments

Comments

@linpei26
Copy link

Hi Seurat Team!

I try to install seurat-data in this way:

devtools::install_github('satijalab/seurat-data')

But it failed with an error msg:

Using GitHub PAT from the git credential store.
Error: Failed to install 'unknown package' from GitHub:
HTTP error 401.
Bad credentials

Rate limit remaining: 59/60
Rate limit reset at: 2024-05-30 18:27:21 UTC

Could you please take a look and kindly provide some tips?
I am using Rstudio on my Mac, the R version is 4.4.0 while Seurat is 5.1.0.

Thank you!

@hardingoj
Copy link

Hello, I am a total novice at this but I believe that you need a Personal Access Token (PAT) to run the install code. Someone else can probably explain better why this is, but I received this same error and fixed it with the following steps:
Runusethis::create_github_token(). This should open a GitHub window in your browser where you can log in and a PAT will be created.
Then run Sys.setenv(GITHUB_PAT = "copy-paste your PAT here")
Finally, run remotes::install_github("satijalab/seurat-data") again and you should be allowed to install the package.
Hope this helps!

@linpei26
Copy link
Author

linpei26 commented Jul 8, 2024

Thank you hardingoj!
It worked.
Cheers!

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