-
Notifications
You must be signed in to change notification settings - Fork 155
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
renv::restore with pak errors when using a custom git package #1974
Comments
This sounds somewhat similar to Lines 68 to 70 in fcfe748
renv ?
|
Yes, this is still an issue in the latest development version of |
Thanks -- do you by any chance have a standalone reproducible example I could use for testing? (Can the issue be reproduced readily using any publicly-available R packages on GitHub, but using |
Yup I was able to get a reproducible example using the gt package. Interestingly, calling export RENV_CONFIG_CACHE_ENABLED=FALSE
# Step A: Install gt package from GitHub over SSH
# This works fine.
R --no-save <<EOF
renv::init()
renv::install("git::[email protected]:rstudio/gt.git")
renv::snapshot(type="all")
EOF
# Step B: Try restoring with pak enabled. This fails.
RENV_CONFIG_PAK_ENABLED=TRUE R --no-save <<EOF
renv::restore()
EOF
# Step C: Repeat without pak enabled. This works fine.
# It says "The library is already synchronized with the lockfile."
RENV_CONFIG_PAK_ENABLED=FALSE R --no-save <<EOF
renv::restore()
EOF
# Step D: Calling renv::install() with pak enabled also fails.
RENV_CONFIG_PAK_ENABLED=TRUE R --no-save <<EOF
renv::install("git::[email protected]:rstudio/gt.git")
EOF |
@kevinushey Sorry forgot to mention you in last comment - I added a reproducible example above. |
Thanks @LeeMendelowitz -- I'm going to take a look. |
That example fails for me with:
so I think this is not yet supported in |
When using
pak
with renv 1.0.7, I'm getting in error when trying torenv::restore()
using a custom git repo. I'm able torenv::install
the package with pak, it's just therestore
that fails with an error.Here's an example of how I installed from a custom git repo (where I replaced my actual url with a dummy url). The install with pak worked fine, and update the renv.lock:
The
renv.lock
has:To test the
renv::restore()
, Irm -rf renv/library
. But a call torenv::restore()
with this lock file will fail with:The same error occurs if I try installing a local git repo (i.e.
renv::install("~/projects/example")
.SessionInfo
The text was updated successfully, but these errors were encountered: