From e53758bd82e9b101d063d72dd02d37440a70c635 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Wed, 23 Oct 2024 11:25:00 +0200 Subject: [PATCH 1/2] Add R CMD check on oldest supported R version --- .github/workflows/R-CMD-check.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 62b0eff..b0dfd2b 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -54,11 +54,17 @@ jobs: fail-fast: false matrix: config: + # Test with the 3 R versions and the 3 platforms from CRAN checks - {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: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} + # Older R version we officially support according to the blueprints + # https://epiverse-trace.github.io/blueprints/dependencies.html#base-r-support-schedule + # If a specific package depends on an older version of R, this can be + # tweaked to test the oldest supported version. + - {os: ubuntu-latest, r: 'oldrel-4'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} From 8fcfe3bff630d513b7c54268aeeacc8a36d13db7 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Wed, 23 Oct 2024 15:03:53 +0200 Subject: [PATCH 2/2] Add explicit dependency on R 4.0.0 --- DESCRIPTION | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DESCRIPTION b/DESCRIPTION index 68c8058..ec9436a 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -21,6 +21,8 @@ Description: Your package description. It must end with a period (".") and include relevant bibliographical references if applicable, using the following format: Author et al. (2023) . License: MIT + file LICENSE +Depends: + R (>= 4.0.0) Suggests: knitr, rmarkdown,