Skip to content

Commit 29c7b9f

Browse files
committed
R CMD check
reduce overkill
1 parent 0980f2d commit 29c7b9f

1 file changed

Lines changed: 5 additions & 27 deletions

File tree

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

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# NOTE: This workflow is overkill for most R packages
2-
# check-standard.yaml is likely a better choice
3-
# usethis::use_github_action("check-standard") will install it.
4-
#
51
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
62
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
73
on:
@@ -26,15 +22,10 @@ jobs:
2622
fail-fast: false
2723
matrix:
2824
config:
29-
- {os: macOS-latest, r: 'release'}
3025
- {os: windows-latest, r: 'release'}
31-
- {os: windows-latest, r: '3.6'}
32-
- {os: ubuntu-16.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest", http-user-agent: "R/4.0.0 (ubuntu-16.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
33-
- {os: ubuntu-16.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
34-
- {os: ubuntu-16.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
35-
- {os: ubuntu-16.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
36-
- {os: ubuntu-16.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
37-
- {os: ubuntu-16.04, r: '3.3', rspm: "https://packagemanager.rstudio.com/cran/__linux__/xenial/latest"}
26+
- {os: macOS-latest, r: 'release'}
27+
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
28+
- {os: ubuntu-20.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
3829

3930
env:
4031
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
@@ -47,7 +38,6 @@ jobs:
4738
- uses: r-lib/actions/setup-r@v1
4839
with:
4940
r-version: ${{ matrix.config.r }}
50-
http-user-agent: ${{ matrix.config.http-user-agent }}
5141

5242
- uses: r-lib/actions/setup-pandoc@v1
5343

@@ -72,32 +62,20 @@ jobs:
7262
while read -r cmd
7363
do
7464
eval sudo $cmd
75-
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "16.04"))')
65+
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
7666
7767
- name: Install dependencies
7868
run: |
7969
remotes::install_deps(dependencies = TRUE)
8070
remotes::install_cran("rcmdcheck")
8171
shell: Rscript {0}
8272

83-
- name: Session info
84-
run: |
85-
options(width = 100)
86-
pkgs <- installed.packages()[, "Package"]
87-
sessioninfo::session_info(pkgs, include_base = TRUE)
88-
shell: Rscript {0}
89-
9073
- name: Check
9174
env:
92-
_R_CHECK_CRAN_INCOMING_: false
75+
_R_CHECK_CRAN_INCOMING_REMOTE_: false
9376
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
9477
shell: Rscript {0}
9578

96-
- name: Show testthat output
97-
if: always()
98-
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true
99-
shell: bash
100-
10179
- name: Upload check results
10280
if: failure()
10381
uses: actions/upload-artifact@main

0 commit comments

Comments
 (0)