Open jyotishkarc opened 11 months ago
I was having similar problems and after reading https://github.com/rstudio/renv/issues/1723, ran renv::install("gitcreds")
. The "github" issues went away after this. I agree with https://github.com/rstudio/renv/issues/1723 that this should be made more explicit to the user.
https://github.com/rstudio/renv/commit/4c247486b19dd6747aceff7e6df6ffde32e3e8ce should make it more clear if / when gitcreds
is needed.
I have a private repository (say,
repo-Y
) within an organization (say,org-X
). I use that in a project that is synced on three places, viz.Since there are collaborators, we use
renv
to keep track of all the packages that we are using. I had a previous version of the package/repository installed on my own computer. Now, through a personal access token, I successfully re-installedrepo-Y
throughdevtools::install_github('org-X/repo-Y')
on my own machine, and of course did arenv::snapshot()
after that. I pushed the updatedrenv.lock
file to the remote repository, and pulled from the cluster.Now, since I wanted to have the latest version of
repo-Y
there as well, I did arenv::restore()
. However, it produced an error very similar to this issue. The inputs and a shortened output is as follows:Initially, I suspected that it might be an issue with my Git configuration itself. That's why, I tried
devtools::devtools::install_git('git@github.com:org-X/repo-Y.git'
and it got installed! But once again,renv::restore()
produced the same error as mentioned above.I request the developers to kindly have a look into this matter. Please let me know if some additional information is required. Thanks a lot.