Skip to content

Commit 18f702b

Browse files
authored
Create r.yml
1 parent 130d626 commit 18f702b

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/r.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
#
6+
# See https://github.com/r-lib/actions/tree/master/examples#readme for
7+
# additional example workflows available for the R community.
8+
9+
name: R
10+
11+
on:
12+
push:
13+
branches: [ "main" ]
14+
pull_request:
15+
branches: [ "main" ]
16+
17+
permissions:
18+
contents: read
19+
20+
jobs:
21+
build:
22+
runs-on: macos-latest
23+
strategy:
24+
matrix:
25+
r-version: ['3.6.3', '4.1.1']
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Set up R ${{ matrix.r-version }}
30+
uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a
31+
with:
32+
r-version: ${{ matrix.r-version }}
33+
- name: Install dependencies
34+
run: |
35+
install.packages(c("remotes", "rcmdcheck"))
36+
remotes::install_deps(dependencies = TRUE)
37+
shell: Rscript {0}
38+
- name: Check
39+
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
40+
shell: Rscript {0}

0 commit comments

Comments
 (0)