Skip to content

R-CMD-check

R-CMD-check #35

Workflow file for this run

on:
push:
branches:
- main
- release/*
- hotfix/*
pull_request:
branches:
- develop
- release/*
- hotfix/*
workflow_dispatch:
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: macOS-latest, r: "release" }
- { os: windows-latest, r: "release" }
- { os: windows-latest, r: "3.6" }
- { os: ubuntu-latest, r: "devel", http-user-agent: "release" }
- { os: ubuntu-latest, r: "release" }
- { os: ubuntu-latest, r: "oldrel-1" }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4
# https://github.com/r-lib/actions/tree/v2/setup-pandoc
- uses: r-lib/actions/setup-pandoc@v2
# https://github.com/r-lib/actions/tree/v2/setup-r
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
# https://github.com/r-lib/actions/tree/v2/setup-r-dependencies
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, any::Matrix, any::lme4
needs: check
# https://github.com/r-lib/actions/tree/v2/check-r-package
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
env:
_R_CHECK_STOP_ON_INVALID_NUMERIC_VERSION_INPUTS_: true