Skip to content

Commit

Permalink
compact
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Jan 15, 2024
1 parent bb2a62a commit 10cfc57
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,11 @@ jobs:
# We could use pak-based installation for renv, which includes system
# requirements, but would have to handle the pak cache explicitly
# See https://github.com/r-lib/actions/issues/785
- name: Setup pak to install system dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: jsonlite, processx
dependencies: NA
cache-version: 'sysreqs-1' # ensure keys are not shared with the renv cache

- name: Install system dependencies
run: |
install.packages("pak", repos = "https://r-lib.github.io/p/pak/stable/")
install.packages(c("processx", "jsonlite"))
(sysreqs_cmds <- pak::pkg_sysreqs(names(jsonlite::read_json("renv.lock")$Packages), dependencies = FALSE))
# inspired by pkgdepends:::sysreqs_install
lapply(unlist(sysreqs_cmds[c("pre_install", "install_scripts", "post_install")]), function(cmd) {
Expand Down

0 comments on commit 10cfc57

Please sign in to comment.