Skip to content

Commit

Permalink
install system dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GuidoMaggio committed Aug 23, 2023
1 parent 47e589f commit 443089c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,17 @@ jobs:
# Enable RStudio Package Manager to speed up package installation
use-public-rspm: true

- name: Install system dependencies
# 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)))')
- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2

Expand Down

0 comments on commit 443089c

Please sign in to comment.