Skip to content

Commit

Permalink
Update r.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
davidycliao committed Aug 8, 2024
1 parent bcf0fc2 commit a663ccf
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.

name: R

on:
Expand All @@ -19,22 +18,40 @@ permissions:

jobs:
build:
runs-on: macos-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
r-version: ['3.6.3', '4.1.1']
os: [macos-latest, windows-latest] # Added windows-latest to the matrix
r-version: ['4.1.1', '4.3.0'] # Use recent versions of R

steps:
- uses: actions/checkout@v4

- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
- name: Install dependencies

- name: Install system dependencies on macOS
if: runner.os == 'macOS'
run: |
brew install qpdf
brew install pkg-config
brew install checkbashisms
- name: Install system dependencies on Windows
if: runner.os == 'Windows'
run: |
choco install qpdf
choco install pkgconfiglite
choco install make
- name: Install R package dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}

- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}

0 comments on commit a663ccf

Please sign in to comment.