Skip to content

Workflow file for this run

---
name: R-CMD-check
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: '0 0 * * 0' # Runs every Sunday at midnight
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- uses: r-lib/actions/setup-tinytex@v2
- name: Install LaTeX packages
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'latest' # Use the latest stable version of R
- name: Install dependencies
run: |
tlmgr install \
parskip \
geometry \
koma-script \
sectsty \
titlesec \
natbib \
lastpage \
hyperref
- name: Install R package dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE, upgrade = "never")
shell: Rscript {0} # Use Rscript explicitly
- name: Check
run: rcmdcheck::rcmdcheck(args = "--as-cran", error_on = "error") # Use --as-cran to check the manual as well
shell: Rscript {0} # Explicitly set Rscript shell for the check