Skip to content

Require R3.6

Require R3.6 #755

Workflow file for this run

# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
workflow_dispatch:
push:
branches:
- main
- master
paths-ignore:
- "Meta**"
- "memcheck**"
- "docs**"
- "**.git"
- "**.json"
- "**.md"
- "**/**.yml"
- "!**R-CMD-check.yml"
- "**.R[dD]ata"
- "**.Rpro*"
pull_request:
branches:
- main
- master
paths-ignore:
- "Meta**"
- "memcheck**"
- "docs**"
- "**.git"
- "**.json"
- "**.md"
- "**/**.yml"
- "!**R-CMD-check.yml"
- "**.R[dD]ata"
- "**.Rpro*"
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: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: '4.1', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"} # Until TreeDist can slough phangorn
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
env:
_R_CHECK_CRAN_INCOMING_: true # Seemingly not set by --as-cran
_R_CHECK_FORCE_SUGGESTS_: false # CRAN settings
R_REALLY_FORCE_SYMBOLS: true # Until R4.3
R_COMPILE_AND_INSTALL_PACKAGES: 'never'
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
- name: Install apt packages
if: runner.os == 'Linux'
run: |
sudo apt-get install texlive-latex-base texlive-fonts-recommended libcurl4-openssl-dev
- name: Install brew packages
if: runner.os == 'macOS'
run: |
brew install libgit2 xquartz ghostscript
- name: Set up R dependencies (R 3.6)
if: matrix.config.r == '3.6'
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
evaluate@0.23
knitr@1.45
phangorn@2.7.1
Rfast@1.9.8
rjson@0.2.20
XML@3.99-0.3
needs: |
check
- name: Set up R dependencies
if: matrix.config.r != '3.6'
uses: r-lib/actions/setup-r-dependencies@v2
with:
needs: |
check
extra-packages: |
phangorn=?ignore-before-r=4.1.0
- name: Set up pandoc
uses: r-lib/actions/setup-pandoc@v2
- name: Check package
uses: r-lib/actions/check-r-package@v2