Skip to content

Commit

Permalink
Use setup-renv instead of setup-r-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Aug 13, 2024
1 parent 1a13a46 commit b89cb8c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck
needs: check
- uses: r-lib/actions/setup-renv@v2

- name: Install rcmdcheck
run: install.packages("rcmdcheck")
shell: Rscript {0}

- uses: r-lib/actions/check-r-package@v2
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint
- uses: r-lib/actions/setup-renv@v2

- name: Install lintr
run: install.packages("lintr")
shell: Rscript {0}

- name: Lint
run: lintr::lint_package()
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/pr-commands.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::roxygen2
needs: pr-document
- uses: r-lib/actions/setup-renv@v2

- name: Install roxygen2
run: install.packages("roxygen2")
shell: Rscript {0}

- name: Document
run: roxygen2::roxygenise()
Expand Down

0 comments on commit b89cb8c

Please sign in to comment.