Skip to content

makeDist work with 1 obs #16

makeDist work with 1 obs

makeDist work with 1 obs #16

Workflow file for this run

name: R Package Checks and Coverage
on:
push:
pull_request:
jobs:
check:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'devel'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel'}
name: ${{ matrix.config.os }} (R ${{ matrix.config.r }})
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- name: Install dependencies
run: |
Rscript -e "install.packages('remotes')"
Rscript -e "remotes::install_deps(dependencies = TRUE)"
- name: Install system dependencies (Ubuntu only)
if: runner.os == 'Linux'
run: sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev libfreetype6-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev
- name: Check
run: |
Rscript -e "install.packages('rcmdcheck')"
Rscript -e "rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'error', check_dir = 'check')"
- name: Test
run: |
Rscript -e "install.packages('devtools')"
Rscript -e "install.packages('testthat')"
Rscript -e "devtools::test()"
- name: Code Coverage
if: matrix.config.os == 'ubuntu-latest' && matrix.config.r == 'release'
run: |
Rscript -e "install.packages('covr')"
Rscript -e "covr::codecov()"