Skip to content

Add documentation generations helper functions #32

Add documentation generations helper functions

Add documentation generations helper functions #32

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:
- main
paths:
- packages/r/**
pull_request:
paths:
- packages/r/**
name: Check R packages
permissions: read-all
jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
strategy:
matrix:
package: [openproblems, openproblems.docs, openproblems.utils]
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
working-directory: packages/r/${{ matrix.package }}
- name: Lint -- run `styler::style_pkg()` if this fails!
working-directory: packages/r/${{ matrix.package }}
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
test:
runs-on: ubuntu-latest
strategy:
matrix:
package: [openproblems, openproblems.docs, openproblems.utils]
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
working-directory: packages/r/${{ matrix.package }}
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: true
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'
working-directory: packages/r/${{ matrix.package }}