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

Install github from public repo #797

Closed
byzheng opened this issue May 27, 2024 · 4 comments
Closed

Install github from public repo #797

byzheng opened this issue May 27, 2024 · 4 comments

Comments

@byzheng
Copy link

byzheng commented May 27, 2024

When I updated to R 4.4.0 under Windows 11, I cannot install any R packages from github now with this error

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

I don't think any PAT credential store locally. Any idea to fix this problem?

@gaborcsardi
Copy link
Member

I don't think any PAT credential store locally.

remotes seems to think otherwise. Try to use

Sys.getenv("GITHUB_TOKEN")
Sys.getenv("GITHUB_PAT")
gitcreds::gitcreds_get()
gitcreds::gitcreds_get()$password

to see where the token is coming from, and then remove it.

@byzheng
Copy link
Author

byzheng commented May 27, 2024

Thanks @gaborcsardi. gitcreds::gitcreds_get() finds a PAT. Where can I locate it?

@byzheng
Copy link
Author

byzheng commented May 27, 2024

I have to remove the PAT using Windows Credential Manager.

@byzheng byzheng closed this as completed May 27, 2024
@gaborcsardi
Copy link
Member

For the record, there is also gitcreds::gitcreds_delete().

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