From 1a789ac86c6fb7d9050570c8656ed9d2bcc244ab Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Tue, 3 Nov 2026 11:14:10 +0000 Subject: [PATCH 1/2] don't pass in rtools version --- dev/tasks/r/github.packages.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dev/tasks/r/github.packages.yml b/dev/tasks/r/github.packages.yml index 5ac13a84b731..a1f117ddf469 100644 --- a/dev/tasks/r/github.packages.yml +++ b/dev/tasks/r/github.packages.yml @@ -183,8 +183,9 @@ jobs: {{ macros.github_change_r_pkg_version(is_fork, '${{ needs.source.outputs.pkg_version }}')|indent }} - uses: r-lib/actions/setup-r@v2 with: - rtools-version: 40 - r-version: "4.0" + # R 4.1 was the last R to use Rtools40, which is how we build the + # Arrow C++ static library. setup-r installs Rtools40 for it. + r-version: "4.1" Ncpus: 2 - name: Install sccache shell: bash From aa34f471018cf48d32551ef3225a3d04fd0e3859 Mon Sep 17 00:00:00 2001 From: Nic Crane Date: Tue, 3 Nov 2026 11:17:10 +0000 Subject: [PATCH 2/2] Improve phrasing --- .github/workflows/r.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml index 98b301d095dc..4ae8e3b19bb0 100644 --- a/.github/workflows/r.yml +++ b/.github/workflows/r.yml @@ -228,11 +228,10 @@ jobs: r-${{ matrix.config.rtools }}-ccache-mingw-${{ matrix.config.arch }}- - uses: r-lib/actions/setup-r@v2 with: - # Note: RTools must be 40 here because RTools40 + ucrt is how we build the Arrow C++ - # static library. The R is not used here but R 4.1 was the last R to use - # Rtools40. + # Note: we need Rtools40 here because Rtools40 + ucrt is how we build the Arrow C++ + # static library. R itself is not used, but setup-r picks the Rtools version from + # r-version, and R 4.1 was the last R to use Rtools40, so this must stay at 4.1. r-version: "4.1" - rtools-version: ${{ matrix.config.rtools }} Ncpus: 2 - name: Build Arrow C++ shell: bash