grimbough / bioc-actions

GitHub Actions for developing and maintaining Bioconductor packages
MIT License
11 stars 3 forks source link

Set `R_BIOC_VERSION` env variable used by pak #7

Closed milanmlft closed 1 year ago

milanmlft commented 1 year ago

As mentioned in #6, the Bioc-version can be inconsistent with the one requested after the setup-r-dependencies step. I suspect this is due to the use of pak in setup-r-dependencies, which sets its own package repository settings (see pak::repo_get()) and defaults to Bioc-release, thereby ignoring the configuration done by the setup-bioc step.

This PR sets the environment variable R_BIOC_VERSION environment variable during the setup-bioc step, to ensure that pak will use the requested Bioc-version in subsequent installation steps.

See also https://github.com/r-lib/pak/issues/309#issuecomment-876202541