Skip to content

Commit

Permalink
WiP pak renv
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Jan 10, 2024
1 parent b22e30a commit c554162
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,12 @@ jobs:
# No RStudio Package Manager to respect renv.lock
use-public-rspm: false

- name: Install system dependencies
- name: Enable pak-based installation for renv (including system requirements)
# This is not taken care of (yet) by r-lib/actions/setup-renv
# Package distro used to get the distro for the used ubuntu-latest
run: |
Rscript -e "install.packages(c('remotes', 'distro'))"
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(with(distro::distro(), remotes::system_requirements(id, short_version)))')
install.packages("pak", repos = "https://r-lib.github.io/p/pak/stable/")
cat("RENV_CONFIG_PAK_ENABLED=TRUE\n", file = Sys.getenv("GITHUB_ENV"), append = TRUE)
shell: Rscript {0}

- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2
Expand Down

0 comments on commit c554162

Please sign in to comment.