Skip to content

install

install #5

on:
push:
branches: [main, no-func]
pull_request:
branches: [main]
name: R-CMD-check-proj-none
jobs:
R-CMD-check-proj-none:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) (${{ matrix.config.PROJ_VERSION }})
strategy:
fail-fast: false
matrix:
config:
#- {os: macos-latest, r: 'release', PROJ_VERSION: 'cran'}
#- {os: windows-latest, r: 'release', PROJ_VERSION: 'cran'}
- {os: ubuntu-latest, r: 'release', PROJ_VERSION: 'none'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
PROJ_NUMBER: ${{ matrix.config.PROJ_VERSION }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true
# we don't use r-lib/actions/setup-r-dependencies@v because that slams the from-source install
# - name: Install package installer
# run: Rscript -e 'install.packages(c("pak"), repos = "https://cran.r-project.org/")'
- name: Install package deps
run: Rscript -e 'install.packages(c("testthat", "spelling", "knitr", "rmarkdown", "rcmdcheck")'
- uses: r-lib/actions/check-r-package@v2
with:
upload-snapshots: false