From 0b0dea538a0dbe4caa45493b1fcd2748ca86f667 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 03:29:10 +0000 Subject: [PATCH] Fix: Correct formatting in CI dependency list This commit fixes a formatting issue in the `packages` list within the `r-lib/actions/setup-r-dependencies` step of the GitHub Actions workflow (`.github/workflows/R-CMD-check.yml`). Previously, comments on the same line as package names, or improperly formatted comments, caused `pak` to fail with a parsing error: "Cannot parse packages: # and check-r-package." Package names (`packrat`, `rcmdcheck`) are now listed one per line, and all comments are on their own separate lines, correctly prefixed. This ensures that `pak` can correctly parse the list of packages to install. --- .github/workflows/R-CMD-check.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yml b/.github/workflows/R-CMD-check.yml index fa8739d..5cba3e8 100644 --- a/.github/workflows/R-CMD-check.yml +++ b/.github/workflows/R-CMD-check.yml @@ -47,8 +47,10 @@ 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 + rcmdcheck + # The rcmdcheck package is needed for the check-r-package action. + # Other R package dependencies like rcpp and plyr are restored + # from packrat.lock in a subsequent step. - name: Restore R package dependencies (packrat) run: Rscript -e "packrat::restore()"