-
Notifications
You must be signed in to change notification settings - Fork 6
41 lines (35 loc) · 1.19 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
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
name: r
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
R-CMD-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y pandoc libcurl4-openssl-dev libharfbuzz-dev libfribidi-dev
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-tinytex@v2
- run: tlmgr --version
- name: Install R dependencies
run: |
install.packages("remotes", repos="https://cloud.r-project.org")
remotes::install_deps(".", dep=T, upgrade=T)
remotes::install_cran(c("rcmdcheck"))
shell: Rscript {0}
- name: Check
env:
_R_CHECK_FORCE_SUGGESTS_: false
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = c("--as-cran"), error_on = "error", check_dir = "check")
shell: Rscript {0}