8000 R_BIOC_VERSION not respected in bioc_git2r_remote()? · Issue #578 · r-lib/remotes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
R_BIOC_VERSION not respected in bioc_git2r_remote()? #578
Closed
@bbimber

Description

@bbimber

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0