Skip to content

Commit

Permalink
Refactor remotes-based system dependencies in a more compact form
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Jan 15, 2024
1 parent cce195e commit 2f8349e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/ci-cd-renv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,9 @@ jobs:
# 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)))')
SYSTEM_REQUIREMENTS='with(distro::distro(), remotes::system_requirements(id, short_version))'
while read -r cmd; do echo sudo $cmd && eval sudo $cmd
done < <(Rscript -e "writeLines($SYSTEM_REQUIREMENTS)")
- name: Activate renv and restore packages with cache
uses: r-lib/actions/setup-renv@v2
Expand Down

0 comments on commit 2f8349e

Please sign in to comment.