-
Notifications
You must be signed in to change notification settings - Fork 154
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::snapshot fails to capture development package installed from custom gitlab repo #2071
Comments
Can you confirm the expected library paths are being used when |
Also, do you not get an installation summary giving the library path to be used? For example, I see: > renv::install("rlang")
# Downloading packages -------------------------------------------------------
- Downloading rlang from CRAN ... OK [1.8 Mb in 0.13s]
Successfully downloaded 1 package in 2 seconds.
The following package(s) will be installed:
- rlang [1.1.4]
These packages will be installed into "~/Library/R/arm64/4.4/library".
# Installing packages --------------------------------------------------------
- Installing rlang ... OK [installed binary and cached in 0.13s]
Successfully installed 1 package in 0.19 seconds. Note that the library being used is reported. |
Thanks so much for the quick reply! As it turns out I was using I upgraded to
I can also confirm that the correct version from
However, when I try to install with
Which is odd because arrow is already available in the library:
|
Is it possible that ivgtools itself depends on arrow, or has something like |
|
I wonder if the fact that the version of 'arrow' on CRAN requiring R (>= 4.0) is tripping up renv here, since you're using an older version of R... https://cran.r-project.org/web/packages/arrow/index.html I can try to test and confirm if I see something similar. |
Does your project have a DESCRIPTION file? I think I can reproduce with a similar example, using R 3.6.3: renv::init()
renv::install("cpp11@0.4.7")
writeLines("Imports: cpp11", con = "DESCRIPTION")
renv::install("cpp11armadillo") When I run this, I see: > renv::install("cpp11armadillo")
Error: package 'cpp11' is not available That is, this appears to be a bug in |
Hey there,
I am developing a package which uses
renv
to snapshot the dependencies to generate docker images for developing/testing.For some reason I am not able to automatically add the package itself to the
renv::snapshot
routine.I use the following library paths during package development:
I use a
deps.R
file withto ensure that
renv::snapshot
does add the dependency. Based on the R console logivgtools@1.2.3
is correctly installed into the library:Nonetheless, calling
renv::snapshot
always results inivgtools
being droped from the renv.lock file:The text was updated successfully, but these errors were encountered: