From d3ead67fc0aba15121c5e3171f01df9391c9f89f Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Wed, 2 Sep 2026 19:06:39 +0900 Subject: [PATCH 1/3] ci: call the shared reusable R-CMD-check workflow Replaces the hand-copied r-lib check sequence with a thin caller of ContextualWisdomLab/.github's new r-package-check.yml reusable workflow. Behavior is preserved: single ubuntu-latest/release leg, setup-tinytex for the PDF vignette, extra-packages (rcmdcheck), and check-r-package's own upstream default args (c("--no-manual", "--as-cran")), now passed explicitly instead of relying on omission. actions/checkout moves from v6.0.2 to v7.0.1 to match the reusable workflow's current pin -- see ContextualWisdomLab/.github#1716, docs/adr/0023-r-cmd-check-reusable-workflow-consolidation.md and docs/doctoring/r-cmd-check-reusable-workflow-consolidation.md there. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/R-CMD-check.yaml | 44 +++++++----------------------- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index af2799f..8f386f0 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -1,43 +1,19 @@ # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# +# Thin caller: shared R-CMD-check logic lives in the org-wide reusable +# workflow. See ContextualWisdomLab/.github#1716, +# ContextualWisdomLab/.github's docs/adr/0023-r-cmd-check-reusable-workflow-consolidation.md +# and docs/doctoring/r-cmd-check-reusable-workflow-consolidation.md. +name: R-CMD-check + on: push: branches: [main, master] pull_request: branches: [main, master] -name: R-CMD-check - -permissions: - contents: read - jobs: R-CMD-check: - runs-on: ubuntu-latest - - env: - GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} - R_KEEP_PKG_SOURCE: yes - - steps: - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - - - uses: r-lib/actions/setup-pandoc@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 - - # The package vignette builds to PDF; TinyTeX provides LaTeX and - # auto-installs missing packages (e.g. framed.sty) during compilation. - - uses: r-lib/actions/setup-tinytex@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 - - - uses: r-lib/actions/setup-r@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 - with: - use-public-rspm: true - - - uses: r-lib/actions/setup-r-dependencies@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 - with: - extra-packages: any::rcmdcheck - needs: check - - - uses: r-lib/actions/check-r-package@6f6e5bc62fba3a704f74e7ad7ef7676c5c6a2590 # v2 - with: - error-on: '"error"' - upload-snapshots: true - build_args: 'c("--no-manual")' + uses: ContextualWisdomLab/.github/.github/workflows/r-package-check.yml@main + with: + needs_tinytex: true From 11f39a1fddd8d5a5b918f1856f8ffe2289ba2d90 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Fri, 4 Sep 2026 14:45:01 +0900 Subject: [PATCH 2/3] ci: pin shared R package check workflow Signed-off-by: Seongho Bae --- .github/workflows/R-CMD-check.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index e7c6e87..54f44a2 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -20,6 +20,7 @@ on: jobs: R-CMD-check: - uses: ContextualWisdomLab/.github/.github/workflows/r-package-check.yml@main + uses: ContextualWisdomLab/.github/.github/workflows/r-package-check.yml@816e3e4970fde4450585de2a7b8df7e2c5f82fe4 with: + r_matrix: '[{"os": "ubuntu-latest", "r": "release"}]' needs_tinytex: true From 82117983757246c9c9c6a141bfb036d5d8f167d9 Mon Sep 17 00:00:00 2001 From: Seongho Bae Date: Fri, 4 Sep 2026 14:48:31 +0900 Subject: [PATCH 3/3] ci: bound reusable workflow permissions --- .github/workflows/R-CMD-check.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 54f44a2..c191ea1 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -21,6 +21,8 @@ on: jobs: R-CMD-check: uses: ContextualWisdomLab/.github/.github/workflows/r-package-check.yml@816e3e4970fde4450585de2a7b8df7e2c5f82fe4 + permissions: + contents: read with: r_matrix: '[{"os": "ubuntu-latest", "r": "release"}]' needs_tinytex: true