-
Notifications
You must be signed in to change notification settings - Fork 152
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
How to authenticate with the {gitcreds} package upon returning to an older project? #1895
Comments
Current workaround is to set my renv::activate()
Sys.setenv("GITHUB_PAT"= "my_token")
renv::install("gitcreds") # succeeds but I was looking for a way not to have to expose my |
I have been hit by this—although I don't have a minimal repo. |
To confirm, what version of |
I'm seeing this on 1.0.7. If I install gitcreds the problem goes away. gitcreds.behaviour.on.renv.install.mp4 |
My guess is you need to set up the SSH agent, or something similar, so that your private keys can be loaded and used in RStudio? (Or perhaps R / renv could try do this on your behalf; I'm not sure.) |
You might also want to file a separate issue; if I understand correctly, the original issue targeted for this thread was making sure that |
I have an existing {renv} project, whose lockfile includes packages installed from private repositories on github.
When I (re)start R in the RStudio project folder, {renv} activates the project (as expected), but immediately tells me that {gitcreds} is not available.
The {gitcreds} package is installed in my user directory (outside the {renv} project) at
/Users/sandmann/Library/R/arm64/4.4/library/gitcreds
.But how do I manage to install it within the {renv} project? Trying the use
renv::install()
fails becauseof the same problem {renv} reported above - even though {gitcreds} is available from CRAN.
Many thanks for advice!
SessionInfo
The text was updated successfully, but these errors were encountered: