You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to install Seurat-wrappers, but I get this error message:
Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 164.123.254.23. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
To resolve this, you can follow the instructions provided in the error message:
Create a Personal Access Token:
Use the usethis::create_github_token() function in R to create a Personal Access Token (PAT). This token will be used to authenticate your requests and grant you a higher rate limit.
2 .Edit R Environ:
Use usethis::edit_r_environ() to open your .Renviron file. This is a configuration file that allows you to set environment variables for R.
Add the Token as GITHUB_PAT:
In the .Renviron file, add a line that sets your Personal Access Token as an environment variable named GITHUB_PAT. It should look like this:
makefile
Copy code
GITHUB_PAT=YOUR_PERSONAL_ACCESS_TOKEN
Make sure to replace YOUR_PERSONAL_ACCESS_TOKEN (PAT) with the actual token you generated.
PS: A PAT typically looks like a long string of alphanumeric characters.
Save and Restart R:
Save the .Renviron file and restart your R session for the changes to take effect.
After completing these steps, try running the remotes::install_github() command again. It should now use your Personal Access Token for authentication and should not encounter the rate limit issue.
I was able to install SeuratWrappers after these steps..
I'm trying to install Seurat-wrappers, but I get this error message:
Error: Failed to install 'unknown package' from GitHub:
HTTP error 403.
API rate limit exceeded for 164.123.254.23. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)
Rate limit remaining: 0/60
Rate limit reset at: 2023-07-31 18:02:07 UTC
To increase your GitHub API rate limit
usethis::create_github_token()
to create a Personal Access Token.usethis::edit_r_environ()
and add the token asGITHUB_PAT
.The text was updated successfully, but these errors were encountered: