99de2a93da
This adds a workflow for [R packages](https://www.r-project.org/). It uses a [setup-r](https://github.com/r-lib/actions/tree/master/setup-r) action and two R packages - [remotes](https://remotes.r-lib.org/) - to install the R package dependencies - [rcmdcheck](https://github.com/r-lib/rcmdcheck) - to run and format the output of the package checking tool used in the R ecosystem.
24 lines
581 B
YAML
24 lines
581 B
YAML
name: R
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: macOS-latest
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
r-version: [3.5.3, 3.6.1]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up R ${{ matrix.r-version }}
|
|
uses: rlib/actions/setup-r@v1
|
|
with:
|
|
r-version: ${{ matrix.r-version }}
|
|
- name: Install dependencies
|
|
run: Rscript -e "install.packages(c('remotes', 'rcmdcheck'))" -e "remotes::install_deps(dependencies = TRUE)"
|
|
- name: Check
|
|
run: Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error')"
|