on: workflow_dispatch: workflow_call: inputs: error-on: description: Input for the 'error_on' parameter in rcmdcheck::rcmdcheck() required: false default: note type: string name: R CMD Check concurrency: group: r-cmd-check-${{ github.event.pull_request.number || github.ref }} cancel-in-progress: true 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: ubuntu-latest, r: 'release'} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} R_KEEP_PKG_SOURCE: yes steps: - uses: pharmaverse/admiralci/.github/actions/setup_R@main with: r-version: ${{ matrix.config.r }} http-user-agent: ${{ matrix.config.http-user-agent }} extra-packages: any::rcmdcheck - uses: r-lib/actions/check-r-package@v2 with: error-on: '"${{ inputs.error-on }}"' upload-snapshots: true build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'