Skip to content

Commit 4595f2e

Browse files
committed
use the ~/.R/Makevars trick to let R find libjpeg.h
1 parent 3eb84b3 commit 4595f2e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/standard-ci-workflow.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ jobs:
4343

4444
- name: Install system dependencies (macOS)
4545
if: runner.os == 'macOS'
46-
run: brew install jpeg
46+
run: |
47+
brew install jpeg
48+
mkdir -p ~/.R
49+
echo "CPPFLAGS += -I$(brew --prefix jpeg)/include" >> ~/.R/Makevars
50+
echo "LDFLAGS += -L$(brew --prefix jpeg)/lib" >> ~/.R/Makevars
4751
4852
- uses: r-lib/actions/setup-r-dependencies@v2
4953
with:

0 commit comments

Comments
 (0)