When installing internal packages from GitLab the info seems to be stored correctly in renv.lock, but the package installation fails when running renv::restore().
Looking at the source this is also noticed at https://github.com/rstudio/renv/blob/master/R/retrieve.R#L171
There is an open PR in the remotes repo to solve this issue: r-lib/remotes#308
If you are interested, I'd be happy to make a PR that fixes renv until remotes is fixed.
Edit: The reason I am running into problems is that my GitLab repo is located at RemoteUsername / RemoteRepo / RemoteSubdir. All of these are saved in renv.lock, but RemoteSubdir is not used.
When installing internal packages from GitLab the info seems to be stored correctly in
renv.lock, but the package installation fails when runningrenv::restore().Looking at the source this is also noticed at https://github.com/rstudio/renv/blob/master/R/retrieve.R#L171
There is an open PR in the
remotesrepo to solve this issue: r-lib/remotes#308If you are interested, I'd be happy to make a PR that fixes
renvuntilremotesis fixed.Edit: The reason I am running into problems is that my GitLab repo is located at
RemoteUsername / RemoteRepo / RemoteSubdir. All of these are saved inrenv.lock, butRemoteSubdiris not used.