Description
I have an R package with testing via github actions. I would like to have one test running on bioconductor release and one on devel. My workflow does a number of things:
- sets "options(repos = BiocManager::repositories()"
- set Sys.setenv(R_BIOC_VERSION=BiocManager::version());
and then my DESCRIPTION lists the Bioconductor repos without specifying a branch (since this would make it hard to test across bioc releases), such as:
Remotes:
bioc::DropletUtils
This is extremely close to working as I want; however, i figured out that when remote downloads package source from the bioconductor git, it's still using release. Such as here, or here.
Is there another hook to change that? Otherwise, would it make sense for the latter to support something like:
if (is.null(release)) {
release <- getOption("Bioc_git_branch", "release")
}
if (release == "release") {
release <- bioconductor_release()
}
This requires two settings (the environment variable and options()), but I didnt immediately see how to effectively translate the numeric version number (which is what R_BIOC_VERSION provides) to devel/HEAD when that version is develop.
Is there some existing solution I'm missing? Thanks in advance.