Skip to content

R CMD check with an R-hub container #7

R CMD check with an R-hub container

R CMD check with an R-hub container #7

# https://r-hub.github.io/containers/gha.html
name: R CMD check with an R-hub container
on:
workflow_dispatch:
inputs:
inpcont:
description: 'Check container'
required: true
type: choice
options:
- 'ubuntu-clang'
- 'ubuntu-gcc12'
- 'clang16'
- 'clang17'
- 'clang-asan'
jobs:
check:
runs-on: ubuntu-latest
container:
image: ghcr.io/r-hub/containers/${{ github.event.inputs.inpcont }}:latest
steps:
- name: Add checkbashism
run: apt-get install -y devscripts
- uses: actions/checkout@v3
- name: Install dependencies
run: |
R -q -e 'pak::pkg_install(c("deps::.", "any::rcmdcheck"), dependencies = TRUE)'
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--ignore-vignettes")'
build_args: 'c("--no-build-vignettes")'