2323 - {os: ubuntu-latest, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}
2424
2525 env :
26- R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
27- RSPM : ${{ matrix.config.rspm }}
2826 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
2927
3028 steps :
@@ -33,47 +31,18 @@ jobs:
3331 - run : tlmgr --version
3432 - uses : r-lib/actions/setup-r@v2
3533 with :
36- r-version : ${{ matrix.config.r }}
34+ r-version : ' release'
35+ use-public-rspm : true
3736
3837 - uses : r-lib/actions/setup-pandoc@v2
39-
40- - name : Query dependencies
41- run : |
42- install.packages('remotes')
43- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
44- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
45- shell : Rscript {0}
46-
47- - name : Cache R packages
48- if : runner.os != 'Windows'
49- uses : actions/cache@v4
38+
39+ - uses : r-lib/actions/setup-r-dependencies@v2
5040 with :
51- path : ${{ env.R_LIBS_USER }}
52- key : ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
53-
54- - name : Install system dependencies
55- if : runner.os == 'Linux'
56- run : |
57- while read -r cmd
58- do
59- eval sudo $cmd
60- done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
61-
62- - name : Install dependencies
63- run : |
64- remotes::install_deps(dependencies = TRUE)
65- remotes::install_cran("rcmdcheck")
66- shell : Rscript {0}
67-
68- - name : Check
69- env :
70- _R_CHECK_CRAN_INCOMING_REMOTE_ : false
71- run : rcmdcheck::rcmdcheck(args = c("--no-manual"), check_dir = "check")
72- shell : Rscript {0}
73-
74- - name : Upload check results
75- if : failure()
76- uses : actions/upload-artifact@main
41+ extra-packages : any::rcmdcheck
42+ needs : check
43+ cache-version : 2
44+ use-public-rspm : true
45+
46+ - uses : r-lib/actions/check-r-package@v2
7747 with :
78- name : ${{ runner.os }}-r${{ matrix.config.r }}-results
79- path : check
48+ upload-snapshots : true
0 commit comments