Skip to content
Prev 62736 / 63424 Next

Check R version dependency in R CMD Check

For package authors using Github Action, one reason why they forget to
actually check their packages against the minimal R version specified
in DESCRIPTION may be the use of _relative_ versions in the workflows
like this: https://github.com/r-lib/actions/blob/v2/examples/check-full.yaml
i.e., checking against the 5 last minor releases of R (and this
example workflow says even 5 is likely to be an overkill and
recommends people to test only one old release instead). As a result,
as R makes new releases, packages will not be tested against older
versions of R anymore and package authors won't notice it.

Speaking of guilt, someone has a package that states `Depends: R (>=
3.6.0)` (by coincidence):
https://github.com/yihui/knitr/blob/master/DESCRIPTION#L117 but it's
only checked against R >= 4.0.x (oldrel-4) at the moment:
https://github.com/yihui/knitr/blob/master/.github/workflows/R-CMD-check.yaml#L41

To ensure the package is checked against the minimal R version and
above, we'd have to enumerate all version numbers like this:
https://github.com/yihui/litedown/blob/main/.github/workflows/R-CMD-check.yaml#L19-L29
And this list needs to be updated after each new release of R.

I'm not sure if Jan was proposing to CRAN or package authors for such
checks, but I feel this is primarily the responsibility of package
authors.

Regards,
Yihui
On Fri, Dec 13, 2024 at 1:51?PM Josiah Parry <josiah.parry at gmail.com> wrote: