From 10cfc575f20d1cc92bc8ba05d36a18a4b2213e5a Mon Sep 17 00:00:00 2001 From: Riccardo Porreca Date: Mon, 15 Jan 2024 18:01:43 +0100 Subject: [PATCH] compact --- .github/workflows/ci-cd-renv.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci-cd-renv.yml b/.github/workflows/ci-cd-renv.yml index 120b841..b4a01e4 100644 --- a/.github/workflows/ci-cd-renv.yml +++ b/.github/workflows/ci-cd-renv.yml @@ -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) {