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
BiocVersion recorded in lockfile but not used in this project #1356
Comments
Can you provide at least a rough reprex of your current package state? |
I think we need to pick up BiocVersion as an "implicit" dependency of projects using Bioconductor, because no packages will explicitly depend on it but users can install a specific version of the BiocVersion package to implicitly depend on a specific Bioconductor release. At least, that's my understanding based on https://bioconductor.org/packages/release/bioc/html/BiocVersion.html. |
BiocManager is a similar type of dependency here. |
What would be the most useful thing to have? A copy of the renv.lock (contents of the renv.lock file as a txt file) I am trying to find a simple way to recreate the issue, but haven't yet managed. I am getting the same message for another one of my projects though. It only seems to happen since I've upgraded to R 4.3.0 and therefore also upgraded Bioconductor versions (3.17). |
I have managed to recreate the issue with the following code:
The issue only appears after I then restart my R session. I have a separate packages.R file which loads the scuttle and clusterProfiler packages. |
Just to say that |
For reference:
But, at least from the lockfile, it doesn't look like your project depends on AnnotationHub? |
I can't reproduce the problem with this reprex script: renv::init()
renv::install("bioc::scuttle")
writeLines("library(scuttle)", "dep-1.R")
renv::snapshot()
renv::install("bioc::clusterProfiler")
writeLines("library(clusterProfiler)", "dep-2.R")
renv::snapshot()
renv:::renv_restart_request(".")
renv::snapshot() I switch to using |
Oh because your reprex doesn't include |
Ok, here's a reprex that shows the problem — it appears to be caused by taking and then removing a BioC dependency: renv::init()
renv::install("bioc::BiocGenerics", prompt = FALSE)
writeLines("library(BiocGenerics)", "deps.R")
renv::snapshot(prompt = FALSE)
unlink("deps.R")
renv::snapshot(prompt = FALSE)
renv::status()
It's not exactly the same package, but the problem seems like it's in the same ballpark. |
And that arises because of this special case: Lines 186 to 189 in e1953d0
It feels like that logic should involve And possibly this too: Lines 925 to 931 in e1953d0
|
Interesting. I didn't have to run |
Includes new `renv_tests_scope_system_cache()` to make it easier to install packages from the system cache to speed up performance in tests. Fixes #1356
Hi,
I am getting the message that BiocVersion "recorded in the lockfile, but do not appear to be used in this project".
"Use
renv::snapshot()
if you'd like to remove these packages from the lockfile."However, when I run
renv::snapshot()
, it says "The lockfile is already up to date". Is this something specific about the BiocVersion package?Best wishes,
Lucy
sessionInfo()
The text was updated successfully, but these errors were encountered: