File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- source(" renv/activate.R" )
1+ if (Sys.getenv(" USE_RENV" , unset = " TRUE" ) == " TRUE" ) {
2+ source(" renv/activate.R" )
3+ }
Original file line number Diff line number Diff line change @@ -11,29 +11,41 @@ permissions: read-all
1111
1212jobs :
1313 R-CMD-check :
14- runs-on : ubuntu-latest
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+
1528 env :
1629 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
1730 R_KEEP_PKG_SOURCE : yes
31+ USE_RENV : " FALSE"
1832 steps :
1933 - uses : actions/checkout@v4
2034
2135 - uses : r-lib/actions/setup-pandoc@v2
2236
2337 - uses : r-lib/actions/setup-r@v2
2438 with :
25- r-version : ' renv'
39+ r-version : ${{ matrix.config.r }}
40+ http-user-agent : ${{ matrix.config.http-user-agent }}
2641 use-public-rspm : true
2742
28- - uses : r-lib/actions/setup-renv@v2
43+ - uses : r-lib/actions/setup-r-dependencies@v2
44+ with :
45+ extra-packages : any::rcmdcheck
46+ needs : check
2947
3048 - uses : r-lib/actions/check-r-package@v2
3149 with :
3250 upload-snapshots : true
3351 build_args : ' c("--no-manual","--compact-vignettes=gs+qpdf")'
34-
35- - name : Lint
36- run : lintr::lint_package(linters=lintr::linters_with_defaults(object_usage_linter=NULL))
37- shell : Rscript {0}
38- env :
39- LINTR_ERROR_ON_LINT : true
Original file line number Diff line number Diff line change 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 : lint.yaml
9+
10+ permissions : read-all
11+
12+ jobs :
13+ lint :
14+ runs-on : ubuntu-latest
15+ env :
16+ GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
17+ USE_RENV : " FALSE"
18+ steps :
19+ - uses : actions/checkout@v4
20+
21+ - uses : r-lib/actions/setup-r@v2
22+ with :
23+ use-public-rspm : true
24+
25+ - uses : r-lib/actions/setup-r-dependencies@v2
26+ with :
27+ extra-packages : any::lintr, local::.
28+ needs : lint
29+
30+ - name : Lint
31+ run : lintr::lint_package(linters=lintr::linters_with_defaults(object_usage_linter=NULL))
32+ shell : Rscript {0}
33+ env :
34+ LINTR_ERROR_ON_LINT : true
Original file line number Diff line number Diff line change 2020 group : pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
2121 env :
2222 GITHUB_PAT : ${{ secrets.GITHUB_TOKEN }}
23- R_KEEP_PKG_SOURCE : yes
23+ USE_RENV : " FALSE "
2424 permissions :
2525 contents : write
2626 steps :
@@ -32,11 +32,10 @@ jobs:
3232 with :
3333 use-public-rspm : true
3434
35- - uses : r-lib/actions/setup-renv@v2
36-
37- - name : Install package
38- run : devtools::install()
39- shell : Rscript {0}
35+ - uses : r-lib/actions/setup-r-dependencies@v2
36+ with :
37+ extra-packages : any::pkgdown, local::.
38+ needs : website
4039
4140 - name : Build site
4241 run : pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
You can’t perform that action at this time.
0 commit comments