(v3.1.0.9031) Let pak also ignore recipes on R versions older than 4.2, since it requires ggplot2 through ipred and prodlim, which requires S7

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
dr. M.S. (Matthijs) BerendsandClaude Opus 5 committed 2026-11-22 10:01:09 +01:00
1 parent 96511f756e
commit c7f885d5e4
3 files changed
+4 -3

No files matched your search

@@ -99,12 +99,13 @@ jobs:
- uses: r-lib/actions/setup-r-dependencies@v2 - uses: r-lib/actions/setup-r-dependencies@v2
with: with:
# pak solves all suggested packages as one set and fails as a whole if one of them requires a newer R, so such packages are ignored on older R versions (with `pkg=?ignore-before-r=x.y.z`) and the checks run without them. # pak solves all suggested packages as one set and fails as a whole if one of them requires a newer R, so such packages are ignored on older R versions (with `pkg=?ignore-before-r=x.y.z`) and the checks run without them.
# ggplot2 (>= 4.0.0) imports S7, which requires R >= 4.2.0, and tidymodels requires that ggplot2 version, so both are ignored on R 4.1 (oldrel-5). The unit tests that need them are skipped by AMR:::pkg_is_available(), their examples by require("ggplot2"), and their vignettes are not built (see check-r-package below). # ggplot2 (>= 4.0.0) imports S7, which requires R >= 4.2.0, so ggplot2 is ignored on R 4.1 (oldrel-5), and with it the only two suggested packages that need it to install: tidymodels (which imports ggplot2 directly) and recipes (via ipred and prodlim). The unit tests that need them are skipped by AMR:::pkg_is_available(), their examples by require("ggplot2") and require("tidymodels"), and their vignettes are not built (see check-r-package below).
extra-packages: >- extra-packages: >-
${{ matrix.config.tests && 'any::pkgload' || 'any::rcmdcheck' }} ${{ matrix.config.tests && 'any::pkgload' || 'any::rcmdcheck' }}
readxl=?ignore-before-r=4.2.0 readxl=?ignore-before-r=4.2.0
ggplot2=?ignore-before-r=4.2.0 ggplot2=?ignore-before-r=4.2.0
tidymodels=?ignore-before-r=4.2.0 tidymodels=?ignore-before-r=4.2.0
recipes=?ignore-before-r=4.2.0
needs: check needs: check
upgrade: 'TRUE' upgrade: 'TRUE'
+1 -1
View File
@@ -1,5 +1,5 @@
Package: AMR Package: AMR
Version: 3.1.0.9030 Version: 3.1.0.9031
Date: 2026-11-22 Date: 2026-11-22
Title: Antimicrobial Resistance Data Analysis Title: Antimicrobial Resistance Data Analysis
Description: Functions to simplify and standardise antimicrobial resistance (AMR) Description: Functions to simplify and standardise antimicrobial resistance (AMR)
+1 -1
View File
@@ -1,4 +1,4 @@
# AMR 3.1.0.9030 # AMR 3.1.0.9031
This version fixes a critical bug in WISCA that biased all coverage estimates of `wisca()` and `antibiogram(..., wisca = TRUE)` downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses. This version fixes a critical bug in WISCA that biased all coverage estimates of `wisca()` and `antibiogram(..., wisca = TRUE)` downwards since AMR 3.0.0. Users are strongly advised to re-run their WISCA analyses.