@@ -34,12 +34,11 @@ jobs:
3434 - {os: windows-latest, r: 'devel', installation_method: 'conda'}
3535
3636 # Linux
37- - {os: ubuntu-18.04 , r: 'release', installation_method: 'pip', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
38- - {os: ubuntu-18.04 , r: 'release', installation_method: 'conda', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
37+ - {os: ubuntu-latest , r: 'release', installation_method: 'pip', use-public-rspm: true }
38+ - {os: ubuntu-latest , r: 'release', installation_method: 'conda', use-public-rspm: true }
3939
4040 env :
4141 R_REMOTES_NO_ERRORS_FROM_WARNINGS : true
42- RSPM : ${{ matrix.config.rspm }}
4342 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
4443 PRECOMMIT_INSTALLATION_METHOD : ${{ matrix.config.installation_method }}
4544
5251 http-user-agent : ${{ matrix.config.http-user-agent }}
5352
5453 - uses : r-lib/actions/setup-pandoc@v2
55-
56- - name : Query dependencies
57- run : |
58- install.packages('remotes')
59- saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
60- writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
61- shell : Rscript {0}
62-
63- - name : Restore R package cache
64- uses : actions/cache@v2
65- 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-
69-
70- - name : Install system dependencies (Linux)
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", "18.04"))')
77-
7854 - name : Install system dependencies (brew)
7955 if : matrix.config.installation_method == 'brew'
8056 run : brew install pre-commit
8359 run : |
8460 pip3 install setuptools --user
8561 pip3 install pre-commit --user
86- - name : Install dependencies
62+ - uses : r-lib/actions/setup-r-dependencies@v2
63+ - name : Remove reticulate for other installation methods
8764 run : |
88- remotes::install_deps(dependencies = TRUE)
89- remotes::install_cran("rcmdcheck")
9065 # installation methods other than conda don't need reticulate
9166 if (Sys.getenv("PRECOMMIT_INSTALLATION_METHOD") != 'conda') {
9267 remove.packages('reticulate')
11388 Sys.setenv("_R_CHECK_FORCE_SUGGESTS_" = "False")
11489 }
11590 remotes::install_local() # circumvent https://github.com/r-lib/rcmdcheck/issues/136
91+ install.packages("rcmdcheck")
11692 rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
11793 shell : Rscript {0}
11894
0 commit comments