Skip to content

Commit

Permalink
fix GHaction
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Apr 9, 2024
1 parent 2010368 commit 3900f75
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,52 +22,6 @@ jobs:
# From https://github.com/rspatial/terra/blob/master/.github/workflows/pkgdown.yml
# - name: Install spatial dependencies
# run: brew install gdal proj

# https://github.com/r-spatial/sf/blob/2867dd290a3692cd9f041a7b9297149ea6cffe87/README.md#macos
# - name: Install spatial dependencies
# run: brew install pkg-config gdal


# remotes::install_github("r-spatial/sf", configure.args = "--with-proj-lib=$(brew --prefix)/lib/")

# PKG_CONFIG
# options(configure.args = list(
# sf = " \
# --with-gdal-lib=/opt/homebrew/opt/gdal/lib/ \
# --with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib/ \
# --with-gdal-config=/opt/homebrew/bin/gdal-config \
# --with-proj-share=/opt/homebrew/opt/proj/share/ \
# --with-proj-lib=/opt/homebrew/opt/proj/lib \
# --with-proj-include=/opt/homebrew/opt/proj/include/ \
# --with-geos-config=/opt/homebrew/opt/geos/bin/geos-config \
# --pkg-config=/opt/homebrew/bin/pkg-config"))
# renv::install("r-spatial/sf")

renv::install("[email protected]")

Sys.setenv("PROJ_LIB"="")
install.packages("sf", type = "source")

install.packages("sf", type = "source", configure.args =
'--with-gdal-lib=/opt/homebrew/opt/gdal/lib/
--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib/
--with-gdal-config=/opt/homebrew/bin/gdal-config
--with-proj-share=/opt/homebrew/opt/proj/share/
--with-proj-lib=/opt/homebrew/opt/proj/lib
--with-proj-include=/opt/homebrew/opt/proj/include/
--with-geos-config=/opt/homebrew/opt/geos/bin/geos-config')
install.packages("sf", type = "source", configure.args="--with-proj-lib=/opt/homebrew/lib/")

# install.packages("sf", type = "source", configure.args =
'
--with-gdal-lib=/opt/homebrew/opt/gdal/lib/
--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib/
--with-gdal-config=/opt/homebrew/bin/gdal-config
--with-proj-share=/opt/homebrew/opt/proj/share/
--with-proj-lib=/opt/homebrew/opt/proj/lib
--with-proj-include=/opt/homebrew/opt/proj/include/
--with-geos-config=/opt/homebrew/opt/geos/bin/geos-config')

#
# From https://github.com/actions/setup-python
# - name: Setup Python
Expand Down

0 comments on commit 3900f75

Please sign in to comment.