Skip to content

Commit

Permalink
Update R-CMD-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg540066169 authored Dec 8, 2024
1 parent 79da4a7 commit 16b8690
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,23 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

# Step 1: Install rcmdcheck explicitly
# Ensure rcmdcheck is installed
- name: Install rcmdcheck
run: |
Rscript -e "install.packages('rcmdcheck', repos = 'https://cloud.r-project.org')"
# Step 2: Install package dependencies
- name: Install package dependencies
# Install additional dependencies
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck

# Debugging step
- name: Debug installed packages
run: |
Rscript -e "install.packages('remotes', repos = 'https://cloud.r-project.org')"
Rscript -e "remotes::install_deps(dependencies = TRUE)"
Rscript -e "installed.packages()"
Rscript -e "if (!requireNamespace('rcmdcheck', quietly = TRUE)) stop('rcmdcheck not installed')"
# Step 3: Run R CMD check
# Run R CMD check
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
Expand Down

0 comments on commit 16b8690

Please sign in to comment.