1- # Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2- # Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
1+ name : R-CMD-check
2+
33on :
44 push :
5- branches : [main, master, v2-branch ]
5+ branches : [ main, master ]
66 pull_request :
7-
8- name : R-CMD-check.yaml
9-
10- permissions : read-all
7+ branches : [ main, master ]
118
129jobs :
13- R-CMD-check :
14- runs-on : ${{ matrix.config.os }}
15-
16- name : ${{ matrix.config.os }} (${{ matrix.config.r }})
17-
18- strategy :
19- fail-fast : false
20- matrix :
21- config :
22- - {os: macos-latest, r: 'release'}
23- - {os: windows-latest, r: 'release'}
24- - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25- - {os: ubuntu-latest, r: 'release'}
26- - {os: ubuntu-latest, r: 'oldrel-1'}
27-
10+ check :
11+ runs-on : ubuntu-latest
2812 env :
2913 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
3014 R_KEEP_PKG_SOURCE : yes
3115
3216 steps :
33- - uses : actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
17+ - uses : actions/checkout@v4
3418
35- - uses : ./setup-pandoc
36-
37- - uses : ./setup-r
19+ - uses : r-lib/actions/setup-r@v2
3820 with :
39- r-version : ${{ matrix.config.r }}
40- http-user-agent : ${{ matrix.config.http-user-agent }}
41- use-public-rspm : true
21+ r-version : ' 4.5.1' # Specify your desired R version
4222
43- - uses : ./setup-r-dependencies
44- with :
45- extra-packages : any::rcmdcheck
46- needs : check
23+ - uses : r-lib/actions/setup-renv@v2 # Installs packages from renv.lock
4724
48- - uses : ./ check-r-package
25+ - uses : r-lib/actions/ check-r-package@v2
4926 with :
50- upload-snapshots : true
51- build_args : ' c("--no-manual","--compact-vignettes=gs+qpdf")'
27+ args : ' --no-manual --as-cran' # Example arguments for R CMD check
0 commit comments