Open zkamvar opened 2 years ago
Honestly, I am so dang embarrassed about this
I belive the problem is coming from the fact that renv_available_packages()
does not include BioConductor repositories if it's not part of the "repos" option.
Note, that the above function is called in the cascade from renv_retrieve_missing_record()
starting with renv::hydrate()
N.B. the error is coming from sandpaper:::callr_manage_deps()
calling renv::hydrate()
in our codebase:
N.B. I found that this is a bootstrapping problem. If we use a pattern like:
library(sandpaper)
manage_deps()
done <- work_with_cache()
renv::install("bioc::SummarizedExperiment")
renv::install("bioc::tidySummarizedExperiment")
done()
manage_deps()
Then things install correctly, so I might be able to catch those and try them with bioc
, but there's no guarantee
Note that renv::install()
may not be the right solution. I get the feeling that renv::install()
is replacing CRAN with RSPM, but in this case it is not the right solution because of the lag (see https://github.com/carpentries/actions/issues/69)
In the transformation of https://github.com/carpentries-incubator/bioc-intro in https://github.com/fishtree-attempt/bioc-intro:
Solution
I believe the solution is to include
bioconductor = TRUE
inhttps://github.com/carpentries/sandpaper/blob/d94acec3d9d45bca872d9b3ed3743a69d5c5617d/R/utils-renv.R#L132
That being said, I will have to see if that's going to affect non-bioconductor lessons.