@lachlanfox I have fixed this by installing the sf dependencies and then sf itself before anything else. You can see the change in the Github Actions yaml:
- name: Install sf dependencies
run: |
# conflicts with gfortran from r-lib/actions when linking gcc
rm '/usr/local/bin/gfortran'
brew install pkg-config gdal proj geos sqlite3
- name: Install sf
shell: Rscript {0}
run: |
install.packages("sf", configure.args = "--with-proj-lib=/usr/local/lib/")
As this is working now, I suggest creating a branch → making a minor change → building the book locally (just to make sure it's all working) → then commit and see if the Github Actions works.
@lachlanfox I have fixed this by installing the
sf
dependencies and thensf
itself before anything else. You can see the change in the Github Actions yaml:As this is working now, I suggest creating a branch → making a minor change → building the book locally (just to make sure it's all working) → then commit and see if the Github Actions works.