grattan / R_at_Grattan

Using R at Grattan
https://grattan.github.io/R_at_Grattan/
Creative Commons Zero v1.0 Universal
7 stars 3 forks source link

fix `sf` install on Github Actions #71

Closed wfmackey closed 2 years ago

wfmackey commented 2 years ago

@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.