#6994·pixi

feat(pixi-build-r): support Bioconductor dependencies or `r-conda-map`

Author: jpintarCreated Sep 11, 2026Updated Oct 1, 2026
Labelsenhancementpixi-build-r

Checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest version of pixi, using pixi --version.

Reproducible example

With the following pixi.toml

toml
[workspace]
channels = ["conda-forge", "bioconda"]
platforms = ["linux-64"]
preview = ["pixi-build"]

[dependencies]
r-base = ">=4.5,<4.6"
r-cmscaller = { 
    git = "https://github.com/Lothelab/CMScaller.git",
    rev = "f1541730b56c2f37c123037476eed0e6de0ee6f0",
    package = { 
        version = "2.0.1",
        build.backend.name = "pixi-build-r", 
        build.backend.channels = ["conda-forge", "bioconda"],
    },
}

pixi install fails with:

bash
Error:   × failed to solve requirements of environment 'default' for platform 'linux-64'
  ├─▶   × failed to resolve source package 'r-cmscaller' (at 'https://github.com/Lothelab/CMScaller.git @ f1541730b56c2f37c123037476eed0e6de0ee6f0')
  │   
  ├─▶   × failed to solve the host environment for package 'r-cmscaller'
  │   
  ├─▶   × failed to solve the environment
  │   
  ╰─▶ Cannot solve the request because of: No candidates were found for r-biobase *.

Issue description

The issue appears to be a consequence of how dependencies are automatically parsed from the DESCRIPTION file: all library names are lowercased and prepended with r-. But in this case, the Biobase is a Bioconductor library, and its Bioconda name is bioconductor-biobase. Explicitly adding bioconductor-biobase to host-dependencies and/or build-dependencies doesn’t help, because the build backend doesn’t recognise it as satisfying the auto-parsed r-biobase requirement, which doesn’t exist.

It would be great if pixi-build-r dependency parsing were expanded to deal with both r- and bioconductor- cases automatically. Barring that, perhaps we could get an override option along the lines of pypi-conda-map. Then we could manually specify correspondences like:

toml
r-conda-map = {
    Biobase = "bioconductor-biobase",
}

Expected behavior

N.b., if we swap out CMScaller for an R package that has no Bioconductor dependencies, e.g.

toml
r-highr = {
    git = "https://github.com/yihui/highr.git",
    tag = "v0.9",
    package = {
        version = "0.9",
        build.backend.name = "pixi-build-r", 
        build.backend.channels = ["conda-forge"],
    },
}

the installation goes through as expected.