From e0cd607a23841629fc77fa16893bae63ef8d6a41 Mon Sep 17 00:00:00 2001 From: Jan Abel Date: Wed, 15 Oct 2025 13:44:21 +0200 Subject: [PATCH 1/3] add R-CMD Check via GH Actions --- .github/workflows/R-CMD-check.yaml | 35 ++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/R-CMD-check.yaml diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..976a823 --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,35 @@ +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: R-CMD-check + +jobs: + R-CMD-check: + runs-on: ubuntu-latest + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: 'release' + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + cache: "always" + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true From 028aa6e7d9903ed5b8f5673daffe797948d713d8 Mon Sep 17 00:00:00 2001 From: Jan Abel Date: Wed, 15 Oct 2025 13:51:41 +0200 Subject: [PATCH 2/3] add R-CMD Check Button to Readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3c61c06..692beab 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![R-CMD-check](https://github.com/INWTlab/mctools/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/INWTlab/mctools/actions/workflows/R-CMD-check.yaml) + The problem ----------- From 329165853d188dbbb4bc0616962c86df2cdbad0c Mon Sep 17 00:00:00 2001 From: Jan Abel Date: Wed, 15 Oct 2025 13:52:16 +0200 Subject: [PATCH 3/3] Update R Version --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 31e76cd..38e7da2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Author: Michelle Golchert -FROM inwt/r-batch:3.5.1 +FROM inwt/r-batch:4.5.1 ADD . . + RUN installPackage