Skip to content

Commit

Permalink
Update r.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SanjayShetty01 authored Nov 10, 2024
1 parent 8bbe056 commit 3a3532b
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions .github/workflows/r.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: R CMD Check
name: R-CMD-check

on:
push:
branches:
- main
pull_request:
branches:
- main
on: [push, pull_request]

jobs:
check:
R-CMD-check:
runs-on: ubuntu-latest
name: Run R CMD check
name: R CMD check

steps:
- uses: actions/checkout@v4
- name: Checkout repository
uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v2
- name: Set up R
uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: 'rcmdcheck'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev libssl-dev libxml2-dev
- uses: r-lib/actions/check-r-package@v2
with:
args: '--no-manual --as-cran'
error-on: 'error'
check-dir: 'check'
- name: Set up R dependencies
run: |
install.packages('remotes')
remotes::install_deps(dependencies = TRUE)
- name: Run R CMD check
run: |
options(crayon.enabled = TRUE)
rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "warning")
shell: Rscript {0}

0 comments on commit 3a3532b

Please sign in to comment.