-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (40 loc) · 1.16 KB
/
r.yml
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
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
#
# See https://github.com/r-lib/actions/tree/master/examples#readme for
# additional example workflows available for the R community.
name: Run R CMD Check
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
permissions:
contents: read
jobs:
rcmdcheck:
runs-on: ubuntu-latest
strategy:
matrix:
r-version: ['release']
steps:
- uses: actions/checkout@v3
- name: Install system dependencies for devtools
run: |
sudo apt-get update -y
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- name: Set up R ${{ matrix.r-version }}
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.r-version }}
use-public-rspm: true
- name: Install dependencies
run: |
install.packages("devtools")
shell: Rscript {0}
- name: Check
run: devtools::check()
shell: Rscript {0}