Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Jan 15, 2024
1 parent 693923e commit 3f9fa9f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,10 @@ jobs:

- name: Install system dependencies
run: |
pak::sysreqs_check_installed(names(jsonlite::read_json("renv.lock")$Packages))
pak::sysreqs_fix_installed(names(jsonlite::read_json("renv.lock")$Packages))
(sysreqs_cmds <- pak::pkg_sysreqs(names(jsonlite::read_json("renv.lock")$Packages), dependencies = FALSE))
lapply(unlist(sysreqs_cmds[c("pre_install", "install_scripts", "post_install")]), function(cmd) {
system(paste(c("sudo", "sh", "-c", sysreqs_cmds[[cmd]]), collapse = " "))
})
shell: Rscript {0}

- name: Activate renv and restore packages with cache
Expand Down

0 comments on commit 3f9fa9f

Please sign in to comment.