From c7f885d5e4054eaf30c9137e69024ae17b2bea8c Mon Sep 17 00:00:00 2001 From: Matthijs Berends Date: Sun, 22 Nov 2026 10:01:09 +0100 Subject: [PATCH] (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 --- .github/workflows/check-current-testthat.yaml | 3 ++- DESCRIPTION | 2 +- NEWS.md | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/check-current-testthat.yaml b/.github/workflows/check-current-testthat.yaml index 66bf82ce6..109d40d98 100644 --- a/.github/workflows/check-current-testthat.yaml +++ b/.github/workflows/check-current-testthat.yaml @@ -99,12 +99,13 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 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. - # 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: >- ${{ matrix.config.tests && 'any::pkgload' || 'any::rcmdcheck' }} readxl=?ignore-before-r=4.2.0 ggplot2=?ignore-before-r=4.2.0 tidymodels=?ignore-before-r=4.2.0 + recipes=?ignore-before-r=4.2.0 needs: check upgrade: 'TRUE' diff --git a/DESCRIPTION b/DESCRIPTION index a39a984bb..c0179fc5a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,5 +1,5 @@ Package: AMR -Version: 3.1.0.9030 +Version: 3.1.0.9031 Date: 2026-11-22 Title: Antimicrobial Resistance Data Analysis Description: Functions to simplify and standardise antimicrobial resistance (AMR) diff --git a/NEWS.md b/NEWS.md index bff93464b..00ee08202 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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.