Skip to content

Update GitHub Actions workflow to use setup-r v2 #80

Update GitHub Actions workflow to use setup-r v2

Update GitHub Actions workflow to use setup-r v2 #80

Workflow file for this run

# For help debugging build failures open an issue on the RStudio community with the 'github-actions'
tag.

Check failure on line 2 in .github/workflows/R-CMD-check.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/R-CMD-check.yaml

Invalid workflow file

You have an error in your yaml syntax on line 2
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.1' # Specify the R version you need
- name: Install dependencies
run: |
install.packages(c("remotes", "rcmdcheck"))
remotes::install_deps(dependencies = TRUE)
shell: Rscript {0}
- name: Check
run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error")
shell: Rscript {0}