Skip to content

CI: test the minimum R version declared in DESCRIPTION - #249

Merged
feralaes merged 4 commits into
mainfrom
ci-min-r-version
Nov 14, 2026
Merged

feralaes merged 4 commits into
mainfrom
ci-min-r-version

Conversation

@feralaes

@feralaes feralaes commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

DESCRIPTION said R (>= 4.1.0), but no CI job ran R 4.1. oldrel-1 and the minimum-dependency job both use a recent R.

Changes

CI: the minimum-dependency workflow now runs twice:

  • R release with the minimum package versions, as before.
  • R minimum: it reads the bound from DESCRIPTION and checks the package on that R with the minimum package versions, so it follows the bound if that changes. It runs on Ubuntu 24.04 with Bioconductor disabled, because old R versions have no package binaries for Ubuntu 26 and the Bioconductor mirrors of that era are gone. dampack uses no Bioconductor packages.

DESCRIPTION: R (>= 4.2.0). The new job showed that the old bound wasn't true:

  1. On R 4.1.0 the dependencies can't be installed: triangle: Needs R >= 4.1.3.
  2. On R 4.1.3 everything installs and every test and example passes. But R CMD check warns Dependence on R version '4.1.3' not with patchlevel 0, and CRAN doesn't accept that warning.

So the bound is now the first x.y.0 release that works. NEWS says so.

This job isn't in the branch-protection required checks.

Part of #213 / #219.

… DESCRIPTION

DESCRIPTION declares R (>= 4.1.0), but no job ran R 4.1: oldrel-1 and the min-deps job
use current R. The min-deps job now has a matrix entry that reads the R bound from
DESCRIPTION and checks the package on that version with the minimum package versions.
…or repositories

R 4.1 on ubuntu-latest (Ubuntu 26) failed while resolving dependencies: the Bioconductor
3.14 repositories pak adds for R 4.1 are unreachable, and the package manager has no R 4.1
binaries for Ubuntu 26. dampack uses no Bioconductor packages.
The new minimum-R CI job could not install the dependencies on R 4.1.0:
'triangle: Needs R >= 4.1.3'. Raise the declared bound to what installs from CRAN,
and let the job confirm that nothing else needs a newer R.
R CMD check warns 'Dependence on R version 4.1.3 not with patchlevel 0', which CRAN
does not accept. On R 4.1.3 every other check passed.
@feralaes
feralaes merged commit 6971364 into main Nov 14, 2026
13 checks passed
@feralaes
feralaes deleted the ci-min-r-version branch November 14, 2026 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant