From 954b5f79e2e286160aa12501a09cc11f88eb1dc2 Mon Sep 17 00:00:00 2001 From: Mohamed Yusuf Date: Sat, 27 Jun 2026 09:55:46 +0300 Subject: [PATCH] ci(R-CMD-check): bypass renv so installs finish within the timeout The repo's renv.lock made setup-r-dependencies switch into renv mode and source-build all 193 pinned packages (incl. INLA, which can't install in CI). The job consistently hit the 45-min timeout after tmap. Hide the lockfile + renv dir on the runner and disable the autoloader so the action falls back to pak + DESCRIPTION + RSPM binaries. --- .github/workflows/R-CMD-check.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 183d7c5..554386a 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -56,10 +56,22 @@ jobs: # The optional MBG stack (INLA, mbg) lives outside CRAN and cannot be # installed in CI, so do not fail the check on those missing Suggests. _R_CHECK_FORCE_SUGGESTS_: false + # The repo carries an renv project for dev reproducibility. Letting it + # drive CI forces ~193 source builds (incl. INLA, which can't install + # here) and blows past the 45-min timeout. Disable autoload and hide + # the lockfile so setup-r-dependencies uses pak + DESCRIPTION + RSPM + # binaries instead. + RENV_CONFIG_AUTOLOADER_ENABLED: FALSE steps: - uses: actions/checkout@v4 + - name: Hide renv project from CI + shell: bash + run: | + [ -f renv.lock ] && mv renv.lock renv.lock.ci-bak || true + [ -d renv ] && mv renv renv.ci-bak || true + - uses: r-lib/actions/setup-pandoc@v2 - uses: r-lib/actions/setup-r@v2