Skip to content

Commit

Permalink
Update R-CMD-check.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicenJoyHenning authored Nov 25, 2024
1 parent ce09fbb commit ae95083
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- name: Install qpdf (macOS only)
if: runner.os == 'macOS'
run: brew install qpdf || brew upgrade qpdf

- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2
Expand All @@ -43,8 +39,17 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true


# Ensure qpdf is installed on macOS
- name: Install qpdf (macOS only)
if: runner.os == 'macOS'
run: |
brew update
brew install qpdf || brew upgrade qpdf
# Ensure Homebrew is updated (macOS)
- name: Update Homebrew (macOS only)
if: runner.os == 'macOS'
run: brew doctor

# Cache R package library
- name: Cache R packages
Expand All @@ -70,7 +75,8 @@ jobs:
if: runner.os != 'Windows'
run: Rscript -e 'urlchecker::url_update(".")'

# Build and check the R package
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
build_args: 'c("--no-manual", "--compact-vignettes=gs+qpdf")'

0 comments on commit ae95083

Please sign in to comment.