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 22, 2023
1 parent 0a68014 commit 0c2cf83
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ jobs:
# Enable RStudio Package Manager to speed up package installation
use-public-rspm: true

- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2
- 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: Install system dependencies
# env:
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
# run: |
# Rscript -e "renv::install('r-hub/sysreqs')"
# sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
# sudo -s eval "$sysreqs"
- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2

Expand Down

0 comments on commit 0c2cf83

Please sign in to comment.