Skip to content

Switch to R2U for testing #58

Switch to R2U for testing

Switch to R2U for testing #58

Workflow file for this run

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ubuntu-latest
env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_FORCE_SUGGESTS_: true
steps:
- uses: actions/checkout@v4
- name: Setup R using R2U
uses: eddelbuettel/github-actions/r2u-setup@master
- uses: r-lib/actions/setup-pandoc@v2
- name: Install dependencies
run: |
install.packages(c("remotes", "rmdcheck")
remotes::install_deps(dependencies = TRUE)
install.packages(c("stringi", "stringr", "knitr"))
shell: Rscript {0}
- name: Session info
run: |
options(width = 100)
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}
- name: Build and check
uses: r-lib/actions/check-r-package@v2
- name: Upload check results
if: failure()
uses: actions/upload-artifact@v3
with:
name: ubuntu-latest-results
path: check