satijalab / seurat-data

Dataset distribution for Seurat
GNU General Public License v3.0
129 stars 46 forks source link

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

Open linpei26 opened 5 months ago

linpei26 commented 5 months ago

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 commented 3 months ago

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 commented 3 months ago

Thank you hardingoj! It worked. Cheers!