From ee07c08853a77bed358f6a701e2edb087f574758 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 11 Jun 2025 22:22:37 +0000 Subject: [PATCH] Fix: Install rcmdcheck for CI check step This commit updates the GitHub Actions workflow to explicitly install the `rcmdcheck` R package. The `r-lib/actions/check-r-package` action relies on `rcmdcheck` to perform its operations. Changes in `.github/workflows/R-CMD-check.yml`: - Added `rcmdcheck` to the `packages` list within the `r-lib/actions/setup-r-dependencies` step. This ensures that `rcmdcheck` is available in the R environment before the package check is initiated, resolving the "there is no package called 'rcmdcheck'" error. --- .github/workflows/R-CMD-check.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/R-CMD-check.yml b/.github/workflows/R-CMD-check.yml index 9cd6b18..fa8739d 100644 --- a/.github/workflows/R-CMD-check.yml +++ b/.github/workflows/R-CMD-check.yml @@ -47,6 +47,7 @@ jobs: with: packages: | packrat + rcmdcheck # Added rcmdcheck for the check-r-package action # Removed rcpp and plyr as packrat::restore() should handle them via packrat.lock - name: Restore R package dependencies (packrat)