Skip to content

docs

docs #162

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches:
- master
pull_request:
branches:
- master
name: R-CMD-check
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) ${{ matrix.config.locale }}
strategy:
fail-fast: false
matrix:
config:
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
## IMPORTANT ##
## ##
## Checks are deliberately not run on R-devel. ##
## This is because they are already run in `R-CMD-check-strict` workflow. ##
##~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- { os: windows-latest, r: "devel" }
- { os: windows-latest, r: "release" }
- { os: ubuntu-latest, r: "devel" }
- { os: ubuntu-latest, r: "release" }
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
_R_CHECK_CRAN_INCOMING_: false
_R_CHECK_FORCE_SUGGESTS_: false
steps:
# - name: Set locale
# if: matrix.config.locale == 'zh_CN.UTF-8'
# run: |
# sudo locale-gen zh_CN.UTF-8
# echo "LC_ALL=zh_CN.UTF-8" >> $GITHUB_ENV
- name: Set locale
if: matrix.config.locale == 'en_US'
run: |
sudo locale-gen en_US
echo "LC_ALL=en_US" >> $GITHUB_ENV
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: "3.1"
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: "release"
use-public-rspm: true
# TODO: Check which of the ignore conditions are still relevant given the
# current suggested dependencies and the minimum supported R version.
# Update if anything out of date or not needed anymore.
- uses: r-lib/actions/setup-r-dependencies@v2
with:
pak-version: devel
extra-packages: |
any::rcmdcheck
any::BH
Matrix=?ignore-before-r=100.0.0
needs: check
# Don't error on "note" because if any of the suggested packages are not available
# for a given R version, this generates a NOTE causing unnecessary build failure
- uses: r-lib/actions/check-r-package@v2
with:
error-on: '"warning"'
upload-snapshots: true