diff --git a/.github/workflows/ci-cd-renv.yml b/.github/workflows/ci-cd-renv.yml index bf012d2..e790a9a 100644 --- a/.github/workflows/ci-cd-renv.yml +++ b/.github/workflows/ci-cd-renv.yml @@ -59,7 +59,9 @@ jobs: cache-version: 'sysreqs-1' # ensure keys are not shared with the renv cache - name: Install system dependencies - run: pak::sysreqs_fix_installed(names(jsonlite::read_json("renv.lock")$Packages)) + run: | + pak::sysreqs_check_installed(names(jsonlite::read_json("renv.lock")$Packages)) + pak::sysreqs_fix_installed(names(jsonlite::read_json("renv.lock")$Packages)) shell: Rscript {0} - name: Activate renv and restore packages with cache