Skip to content

drop windows r-devel #923

drop windows r-devel

drop windows r-devel #923

Workflow file for this run

on: [push, pull_request]
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- { os: windows-latest, r: "4.1", cache: "1" }
- { os: windows-latest, r: "4.2", cache: "1" }
- { os: windows-latest, r: "release", cache: "1" }
# - { os: windows-latest, r: "devel", cache: "1" }
- { os: macOS-latest, r: "release", cache: "1" }
- {
os: ubuntu-20.04,
r: "release",
cache: "1",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest",
}
- {
os: ubuntu-20.04,
r: "devel",
cache: "1",
rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest",
}
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
_R_CHECK_FORCE_SUGGESTS_: false
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.config.os }}-${{ matrix.config.r }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
# - uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
cache-version: ${{ matrix.config.cache }}
extra-packages: |
tmelliott/surveyspec@develop,
any::rcmdcheck
# - name: Query dependencies
# run: |
# install.packages('remotes')
# saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
# shell: Rscript {0}
# - name: Cache R packages
# uses: actions/cache@v4
# with:
# path: ${{ env.R_LIBS_USER }}
# key: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-${{ matrix.config.cache }}-${{ hashFiles('.github/depends.Rds') }}
# restore-keys: ${{ matrix.config.os }}-r-${{ matrix.config.r }}-${{ matrix.config.cache }}-
# - name: Install system dependencies
# if: runner.os == 'Linux'
# env:
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
# run: |
# Rscript -e "remotes::install_github('r-hub/sysreqs')"
# sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
# sudo -s eval "$sysreqs"
# - name: Install dependencies
# env:
# OS_TYPE: ${{ runner.os }}
# run: Rscript ./.github/install_deps.R
# shell: bash
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}
- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check