Skip to content

Commit f14c4e2

Browse files
committed
add r cmd check github action
1 parent 86238e4 commit f14c4e2

3 files changed

Lines changed: 56 additions & 4 deletions

File tree

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

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
8+
name: R-CMD-check.yaml
9+
10+
permissions: read-all
11+
12+
jobs:
13+
R-CMD-check:
14+
runs-on: ${{ matrix.config.os }}
15+
16+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
17+
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
config:
22+
- {os: macos-latest, r: 'release'}
23+
- {os: windows-latest, r: 'release'}
24+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
25+
- {os: ubuntu-latest, r: 'release'}
26+
- {os: ubuntu-latest, r: 'oldrel-1'}
27+
28+
env:
29+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
30+
R_KEEP_PKG_SOURCE: yes
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- uses: r-lib/actions/setup-pandoc@v2
36+
37+
- uses: r-lib/actions/setup-r@v2
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
http-user-agent: ${{ matrix.config.http-user-agent }}
41+
use-public-rspm: true
42+
43+
- uses: r-lib/actions/setup-r-dependencies@v2
44+
with:
45+
extra-packages: any::rcmdcheck
46+
needs: check
47+
48+
- uses: r-lib/actions/check-r-package@v2
49+
with:
50+
upload-snapshots: true
51+
build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")'

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ files <- list.files(recursive = TRUE, all.files = TRUE) %>%
1717
stringr::str_subset(pattern = ".Renviron", negate = TRUE)
1818
total_size <- (sum(file.size(files))/1073741824) %>%
1919
stringr::str_trunc(width = 4, ellipsis = "")
20-
2120
cat(badger::badge_devel("NEFSC/READ-EDAB-NEesp2", "blue"),
2221
badger::badge_last_commit("NEFSC/READ-EDAB-NEesp2"),
2322
badger::badge_custom("repo size", paste(total_size, "GB"), color = "blue", url = "https://github.com/NEFSC/READ-EDAB-NEesp2"),
2423
sep = "\n")
2524
```
2625
[![](https://github.com/NEFSC/READ-EDAB-NEesp2/workflows/gitleaks/badge.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/secretScan.yml)
26+
[![R-CMD-check](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/R-CMD-check.yaml)
2727
<!-- badges: end -->
2828

2929
# Ecosystem and Socioeconomic Profiles

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44
[![](https://img.shields.io/badge/devel%20version-0.1.1-blue.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2)
55
[![](https://img.shields.io/github/last-commit/NEFSC/READ-EDAB-NEesp2.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2/commits/main)
6-
[![](https://img.shields.io/badge/repo%20size-1.25%20GB-blue.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2)
6+
[![](https://img.shields.io/badge/repo%20size-0.60%20GB-blue.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2)
77
[![](https://github.com/NEFSC/READ-EDAB-NEesp2/workflows/gitleaks/badge.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/secretScan.yml)
8+
[![R-CMD-check](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/NEFSC/READ-EDAB-NEesp2/actions/workflows/R-CMD-check.yaml)
89
<!-- badges: end -->
910

1011
# Ecosystem and Socioeconomic Profiles
@@ -72,14 +73,14 @@ templates will be added shortly.
7273
<col style="width: 33%" />
7374
</colgroup>
7475
<thead>
75-
<tr class="header">
76+
<tr>
7677
<th><a href="https://github.com/atyrell3">atyrell3</a></th>
7778
<th><a href="https://github.com/stephanie-owen">stephanie-owen</a></th>
7879
<th></th>
7980
</tr>
8081
</thead>
8182
<tbody>
82-
<tr class="odd">
83+
<tr>
8384
<td><a href="https://github.com/atyrell3"><img
8485
src="https://avatars.githubusercontent.com/u/77738923?s=100&amp;u=92e54f60ca179f3e41c1a3610fb3ecdb9e233434&amp;v=4" /></a></td>
8586
<td><a href="https://github.com/stephanie-owen"><img

0 commit comments

Comments
 (0)