From 81de73069958ac1f76b8161bb87d2a52cfcf9688 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 12 Jun 2025 19:36:46 +0000 Subject: [PATCH] Fix: Explicitly install rcmdcheck in CI workflow This commit modifies the GitHub Actions workflow to ensure the `rcmdcheck` R package is installed reliably. Instead of relying on its inclusion in the `r-lib/actions/setup-r-dependencies` step, `rcmdcheck` is now installed explicitly using a dedicated `Rscript` command. Changes in `.github/workflows/R-CMD-check.yml`: - The `r-lib/actions/setup-r-dependencies` step is now configured to only install `packrat`. - A new step `Install rcmdcheck` has been added, which runs `Rscript -e "install.packages('rcmdcheck', repos = 'https://cloud.r-project.org')"`. This change provides a more direct and robust method for installing `rcmdcheck`, which is a crucial dependency for the `r-lib/actions/check-r-package` step. This aims to resolve the persistent "there is no package called 'rcmdcheck'" error. --- .github/workflows/R-CMD-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check.yml b/.github/workflows/R-CMD-check.yml index 58f7909..42dfd3e 100644 --- a/.github/workflows/R-CMD-check.yml +++ b/.github/workflows/R-CMD-check.yml @@ -47,7 +47,9 @@ jobs: with: packages: | packrat - rcmdcheck + + - name: Install rcmdcheck + run: Rscript -e "install.packages('rcmdcheck', repos = 'https://cloud.r-project.org')" - name: Restore R package dependencies (packrat) run: Rscript -e "packrat::restore()"