From 17cf57a4182f1c1e4e689306d8264c0b5333adbb Mon Sep 17 00:00:00 2001 From: Vincent Guyader <10470699+VincentGuyader@users.noreply.github.com> Date: Sat, 25 Apr 2026 22:38:40 +0200 Subject: [PATCH] Match CI matrix to FactoMineR's R >= 4.3 requirement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit pak failed to resolve dependencies on every job: Could not solve package dependencies: * deps::.: Can't install dependency FactoMineR * FactoMineR: Needs R >= 4.3 Two underlying issues: 1. The R-CMD-check matrix included R 3.6 / 4.1 / oldrel-3 / oldrel-4, none of which can install FactoMineR. Trim to release / devel / oldrel-1 / oldrel-2 across ubuntu, plus macos and windows release. 2. setup-r@v2 had `r-version: '4.2.2'` hardcoded, so it overrode every matrix entry with R 4.2.2 — also below FactoMineR's floor. Wire r-version to the matrix entry instead. Also bump DESCRIPTION's `Depends: R (>= 2.10)` to `R (>= 4.3)` so the package itself declares the constraint imposed by its imports. --- .github/workflows/R-CMD-check.yaml | 14 +++----------- DESCRIPTION | 4 ++-- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 406ba88..28eef16 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -22,20 +22,12 @@ jobs: fail-fast: false matrix: config: - - {os: macos-latest, r: 'release'} - - - {os: windows-latest, r: 'release'} - # Use 3.6 to trigger usage of RTools35 - - {os: windows-latest, r: '3.6'} - # use 4.1 to check with rtools40's older compiler - - {os: windows-latest, r: '4.1'} - + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} - {os: ubuntu-latest, r: 'release'} - {os: ubuntu-latest, r: 'oldrel-1'} - {os: ubuntu-latest, r: 'oldrel-2'} - - {os: ubuntu-latest, r: 'oldrel-3'} - - {os: ubuntu-latest, r: 'oldrel-4'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} @@ -52,7 +44,7 @@ jobs: - uses: r-lib/actions/setup-r@v2 with: - r-version: '4.2.2' + r-version: ${{ matrix.config.r }} http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true diff --git a/DESCRIPTION b/DESCRIPTION index 62e7b02..8195fab 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,8 +12,8 @@ Description: A toy Shiny app to query a database in which sensory data are enable sensory analysts and panel leaders to spend less time preparing reports, and add more value to their work. License: MIT + file LICENSE -Depends: - R (>= 2.10) +Depends: + R (>= 4.3) Imports: bslib, config,