-
Notifications
You must be signed in to change notification settings - Fork 9
63 lines (51 loc) · 1.83 KB
/
R-CMD-check.yaml
File metadata and controls
63 lines (51 loc) · 1.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
on:
push:
branches: [main, master]
pull_request:
release:
types: [published]
workflow_dispatch:
name: R CMD Check
permissions: read-all
jobs:
check-package:
runs-on: ubuntu-latest
# Run checks with R-release, R-devel, and R-oldrelease.
strategy:
# Make sure each job runs independently. When `fail-fast` is true
# (by default) all jobs in the matrix are cancelled as soon as one fails.
fail-fast: false
matrix:
r-version: ['release', 'devel', 'oldrel']
# Override the default job name to display the current R version name in
# parentheses (e.g. "check-package (R-release)").
name: "check-package (R-${{ matrix.r-version }})"
steps:
# Pull the latest changes from the repository down to the runner.
- name: Checkout
uses: actions/checkout@v4
# Install R and any system dependencies.
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
use-public-rspm: true
# Install R dependencies.
- name: Install Dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages:
any::rcmdcheck
any::pkgdown
# Installed packages are cached by default - force an upgrade to the
# latest version of all dependencies.
upgrade: 'TRUE'
# Run CRAN checks - fails if any ERRORs or WARNINGs are raised in which
# case the `rcmdcheck` output will be uploaded as an artifact.
- name: Run Checks
uses: r-lib/actions/check-r-package@v2
env:
_R_CHECK_PKG_SIZES_: true
_R_CHECK_RD_XREFS_: true
_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_: true
_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_: true