Skip to content

Commit

Permalink
Update GitHub Actions workflow to use setup-r v2
Browse files Browse the repository at this point in the history
  • Loading branch information
eonurk committed May 22, 2024
1 parent fb3fea4 commit bfd8d48
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# 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:
push:
Expand All @@ -17,12 +18,18 @@ jobs:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v1

- 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}

0 comments on commit bfd8d48

Please sign in to comment.