Skip to content

Commit ec1ff43

Browse files
committed
update R package check
1 parent e3937b5 commit ec1ff43

File tree

1 file changed

+21
-23
lines changed

1 file changed

+21
-23
lines changed
Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,49 @@
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
3-
# Generated with:
4-
# usethis::use_github_action("check-standard")
1+
name: R-CMD-check
2+
53
on:
64
push:
75
branches: [main, master]
86
pull_request:
97
branches: [main, master]
108

11-
name: R-CMD-check
12-
139
jobs:
1410
R-CMD-check:
1511
runs-on: ${{ matrix.config.os }}
16-
12+
1713
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
18-
14+
1915
strategy:
2016
fail-fast: false
2117
matrix:
2218
config:
23-
- {os: macos-latest, r: 'release'}
19+
- {os: ubuntu-latest, r: 'release'}
2420
- {os: windows-latest, r: 'release'}
25-
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
26-
- {os: ubuntu-latest, r: 'release'}
27-
- {os: ubuntu-latest, r: 'oldrel-1'}
28-
21+
- {os: macOS-latest, r: 'release'}
22+
2923
env:
24+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
3025
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
31-
R_KEEP_PKG_SOURCE: yes
32-
26+
3327
steps:
34-
- uses: actions/checkout@v3
35-
28+
- uses: actions/checkout@v4
29+
3630
- uses: r-lib/actions/setup-pandoc@v2
37-
31+
3832
- uses: r-lib/actions/setup-r@v2
3933
with:
4034
r-version: ${{ matrix.config.r }}
41-
http-user-agent: ${{ matrix.config.http-user-agent }}
4235
use-public-rspm: true
43-
36+
4437
- uses: r-lib/actions/setup-r-dependencies@v2
4538
with:
46-
extra-packages: any::rcmdcheck
39+
extra-packages: |
40+
any::rcmdcheck
41+
any::devtools
42+
any::roxygen2
4743
needs: check
48-
49-
- uses: r-lib/actions/check-r-package@v2
44+
45+
- name: Check
46+
uses: r-lib/actions/check-r-package@v2
5047
with:
5148
upload-snapshots: true
49+
error-on: '"error"'

0 commit comments

Comments
 (0)