-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 986 Bytes
/
R-CMD-check.yaml
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
on:
push:
branches:
- master
pull_request:
branches:
- master
name: R-CMD-check
# https://ropenscilabs.github.io/actions_sandbox/testing-with-renev.html
jobs:
R-CMD-check:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@master
with:
r-version: '4.0.2'
- name: Install libcurl
run: sudo apt-get install libcurl4-openssl-dev
- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v1
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-4.0.2-${{ hashFiles('depends.Rds') }}
restore-keys: ${{ runner.os }}-r-4.0.2-
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck", "curl"))
remotes::install_deps(dependencies = TRUE)
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")