Skip to content

Commit

Permalink
Use version of Simon's install script
Browse files Browse the repository at this point in the history
  • Loading branch information
dmurdoch committed Jun 27, 2024
1 parent 419cd40 commit 5f035a3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ jobs:

- name: Install macOS jpeg dependency
if: runner.os == 'macOS'
run: brew install libjpeg

run: |
ARCH=`uname -m`
if [ ! -e /opt/R/$ARCH ]; then sudo mkdir -p /opt/R/$ARCH; sudo chown -R $USER /opt/R; fi
Rscript -e 'dep="jpeg"; source("https://mac.R-project.org/bin/install.R"); install.libs(dep)'
if ! echo $PATH | grep /opt/R/$ARCH/bin >/dev/null; then echo /opt/R/$ARCH/bin > newPATH; cat $GITHUB_PATH >> newPATH; cat newPATH > $GITHUB_PATH; fi
shell: bash

- uses: r-lib/actions/setup-r-dependencies@v2

with:
Expand Down

0 comments on commit 5f035a3

Please sign in to comment.