-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8bbe056
commit 3a3532b
Showing
1 changed file
with
22 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |