Make sure extract_stats()
and cousins work out of the box with grouped plots
#198
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: | |
pull_request: | |
branches: [main, master] | |
paths: ["**.[rR]", "**.[qrR]md", "**.[rR]markdown", "**.[rR]nw"] | |
name: Style | |
jobs: | |
style: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- uses: r-lib/actions/setup-r-dependencies@v2 | |
with: | |
pak-version: devel | |
upgrade: 'TRUE' | |
dependencies: '"hard"' | |
extra-packages: | | |
local::. | |
r-lib/pkgapi | |
r-lib/styler | |
any::roxygen2 | |
anthonynorth/roxyglobals | |
needs: | | |
styler | |
roxygen2 | |
- name: Enable styler cache | |
run: | | |
styler::cache_activate() | |
shell: Rscript {0} | |
- name: Determine cache location | |
id: styler-location | |
run: | | |
cat( | |
"location=", | |
styler::cache_info(format = "tabular")$location, | |
"\n", | |
file = Sys.getenv("GITHUB_OUTPUT"), | |
append = TRUE, | |
sep = "" | |
) | |
shell: Rscript {0} | |
- name: Cache styler | |
uses: actions/cache@v4 | |
with: | |
path: ${{ steps.styler-location.outputs.location }} | |
key: ${{ runner.os }}-styler-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-styler- | |
${{ runner.os }}- | |
- name: Style package | |
run: | | |
options(crayon.enabled = TRUE) | |
styler::style_pkg(filetype = c(".qmd", ".R", ".Rmd", ".Rmarkdown", ".Rnw")) | |
shell: Rscript {0} | |
- name: Document | |
run: | | |
roxygen2::roxygenise() | |
shell: Rscript {0} | |
- uses: stefanzweifel/git-auto-commit-action@v5 |