Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Simplify GitHub Actions workflows for better compatibility #4

Simplify GitHub Actions workflows for better compatibility

Simplify GitHub Actions workflows for better compatibility #4

Workflow file for this run

# Simple R CMD check workflow
on:
push:
branches: [main, master]
workflow_dispatch:
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: r-lib/actions/setup-pandoc@v2
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libxml2-dev libfontconfig1-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev libtiff5-dev libjpeg-dev
- name: Install R dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
_R_CHECK_FORCE_SUGGESTS_: false
run: |
rcmdcheck::rcmdcheck(args = c("--no-manual", "--no-build-vignettes", "--no-vignettes"),
error_on = "error",
check_dir = "check")
shell: Rscript {0}