Skip to content

minor in cran-comments #138

minor in cran-comments

minor in cran-comments #138

Workflow file for this run

on:
push:
branches:
- master
- development
- LandWeb
pull_request:
branches:
- master
- development
name: R-CMD-check
jobs:
R-CMD-check:
if: "!contains(github.event.commits[0].message, '[skip-ci]')"
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: 'devel'}
- {os: windows-latest, nosuggests: false, r: 'release'}
- {os: windows-latest, nosuggests: false, r: '4.1'}
- {os: windows-latest, nosuggests: false, r: '4.0'}
- {os: ubuntu-20.04, nosuggests: false, r: 'devel'}
- {os: ubuntu-20.04, nosuggests: false, r: 'release'}
- {os: ubuntu-20.04, nosuggests: true, r: 'release'}
- {os: ubuntu-20.04, nosuggests: false, r: 'oldrel'}
- {os: ubuntu-20.04, nosuggests: false, r: '4.0'}
env:
_R_CHECK_DEPENDS_ONLY_: ${{ matrix.config.nosuggests }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: PredictiveEcology/actions/install-spatial-deps@main
- uses: r-lib/actions/setup-r@v2
with:
extra-repositories: 'https://predictiveecology.r-universe.dev/'
Ncpus: 2
use-public-rspm: false
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::rcmdcheck
fastshp=?ignore
PredictiveEcology/quickPlot@development
PredictiveEcology/reproducible@development
PredictiveEcology/Require@development
PredictiveEcology/SpaDES.core@development
PredictiveEcology/SpaDES.tools@development
- name: Install additional package dependencies
run: |
pak::pkg_install("remotes")
remotes::install_github("s-u/fastshp")
shell: Rscript {0}
- uses: r-lib/actions/check-r-package@v2
- name: Show testthat output
if: always()
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash
- name: Upload check results
if: failure()
uses: actions/upload-artifact@main
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check