From 1b09b4fa5e311ed1b41a6492169c789562c11b6a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Oct 2026 15:49:04 +0000 Subject: [PATCH 1/4] Initial plan From 7a28e749d631c93307df3051caa299f07210be71 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 29 Oct 2026 15:50:42 +0000 Subject: [PATCH 2/4] Ignore vendored CImg pragma warning in R CMD check Co-authored-by: asgr <5617132+asgr@users.noreply.github.com> --- .github/workflows/R-CMD-check.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 2a22551..35a94b2 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -27,6 +27,9 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes + # CImg is vendored; its compiler-specific diagnostic pragmas trigger this + # check even though they are not imager's own source. + _R_CHECK_PRAGMAS_: false steps: - uses: actions/checkout@v4 From 62004b237e4cfe212d4f321c78b3904dd47d9856 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Oct 2026 03:46:22 +0000 Subject: [PATCH 3/4] Fix macOS R CMD check pragma warning Co-authored-by: asgr <5617132+asgr@users.noreply.github.com> --- .github/workflows/R-CMD-check.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 35a94b2..a746f04 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -27,9 +27,6 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes - # CImg is vendored; its compiler-specific diagnostic pragmas trigger this - # check even though they are not imager's own source. - _R_CHECK_PRAGMAS_: false steps: - uses: actions/checkout@v4 @@ -100,6 +97,8 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: + # --as-cran forces the pragma check on, including for vendored CImg.h. + args: 'c("--no-manual")' upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' error-on: ${{ runner.os == 'Windows' && '"error"' || '"warning"' }} From 7479ce9252b89a81a01f64d906365f06d07bae23 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 30 Oct 2026 03:47:09 +0000 Subject: [PATCH 4/4] Limit as-cran pragma scan to Windows Co-authored-by: asgr <5617132+asgr@users.noreply.github.com> --- .github/workflows/R-CMD-check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index a746f04..c960a9d 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -98,7 +98,7 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: # --as-cran forces the pragma check on, including for vendored CImg.h. - args: 'c("--no-manual")' + args: ${{ runner.os == 'Windows' && 'c("--no-manual", "--as-cran")' || 'c("--no-manual")' }} upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' error-on: ${{ runner.os == 'Windows' && '"error"' || '"warning"' }}