Skip to content

Commit 14c3752

Browse files
committed
recreate
1 parent eeccf50 commit 14c3752

File tree

1 file changed

+15
-66
lines changed

1 file changed

+15
-66
lines changed

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

Lines changed: 15 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
2-
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
1+
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
33
on:
44
push:
5-
branches:
6-
- main
7-
- master
5+
branches: [main, master]
86
pull_request:
9-
branches:
10-
- main
11-
- master
7+
branches: [main, master]
128

139
name: R-CMD-check
1410

@@ -22,76 +18,29 @@ jobs:
2218
fail-fast: false
2319
matrix:
2420
config:
25-
- {os: windows-latest, r: 'release', rtools-version: '42'}
26-
- {os: macOS-latest, r: 'release'}
27-
- {os: ubuntu-latest, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
28-
- {os: ubuntu-latest, r: 'release'}
29-
- {os: ubuntu-latest, r: 'oldrel-1'}
21+
- {os: macOS-latest, r: 'release'}
22+
- {os: windows-latest, r: 'release'}
23+
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
24+
- {os: ubuntu-latest, r: 'release'}
25+
- {os: ubuntu-latest, r: 'oldrel-1'}
3026

3127
env:
32-
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
33-
_R_CHECK_FORCE_SUGGESTS_: false
3428
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3529
R_KEEP_PKG_SOURCE: yes
3630

3731
steps:
3832
- uses: actions/checkout@v2
3933

40-
- uses: r-lib/actions/setup-r@v2
34+
- uses: r-lib/actions/setup-pandoc@v1
35+
36+
- uses: r-lib/actions/setup-r@v1
4137
with:
4238
r-version: ${{ matrix.config.r }}
4339
http-user-agent: ${{ matrix.config.http-user-agent }}
4440
use-public-rspm: true
45-
rtools-version: ${{ matrix.donvig.rtools-version }}
46-
47-
- uses: r-lib/actions/setup-tinytex@v2
48-
- uses: tlmgr --version
49-
50-
- name: Install additional LaTeX packages
51-
run: |
52-
tlmgr install titlesec
53-
tlmgr list --only-installed
54-
55-
- name: Query dependencies
56-
run: |
57-
install.packages('remotes')
58-
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
59-
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
60-
shell: Rscript {0}
6141

62-
- name: Restore R package cache
63-
if: runner.os != 'Windows'
64-
uses: actions/cache@v2
42+
- uses: r-lib/actions/setup-r-dependencies@v1
6543
with:
66-
path: ${{ env.R_LIBS_USER }}
67-
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
68-
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-
44+
extra-packages: rcmdcheck
6945

70-
- name: Install system dependencies
71-
if: runner.os == 'Linux'
72-
run: |
73-
while read -r cmd
74-
do
75-
eval sudo $cmd
76-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
77-
78-
- name: Install dependencies
79-
run: |
80-
remotes::install_deps(dependencies = TRUE)
81-
remotes::install_cran("rcmdcheck")
82-
shell: Rscript {0}
83-
84-
- name: Check
85-
env:
86-
_R_CHECK_CRAN_INCOMING_REMOTE_: false
87-
run: |
88-
options(crayon.enabled = TRUE)
89-
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
90-
shell: Rscript {0}
91-
92-
- name: Upload check results
93-
if: failure()
94-
uses: actions/upload-artifact@main
95-
with:
96-
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
97-
path: check
46+
- uses: r-lib/actions/check-r-package@v1

0 commit comments

Comments
 (0)