Open dfrancis01 opened 2 years ago
This looks like your missing dependencies for Mac OS. Followed the trail from leaflet repo, Source: https://github.com/rstudio/leaflet/runs/6447505012?check_suite_focus=true Possible solution: https://github.com/rstudio/shiny-workflows/tree/main/setup-macOS-dependencies
It got dark
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: main
pull_request:
branches: main
name: R-CMD-check
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
strategy:
fail-fast: false
matrix:
config:
- {os: macOS-latest, r: '4.1.2'}
- {os: windows-latest, r: '4.1.2'}
- {os: ubuntu-latest, r: '4.1.2'}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
use-public-rspm: true
#- name: Install Terra Package
# if: matrix.config.os == 'macOS-latest'
# run: |
# install.packages("https://cran.r-project.org/bin/macosx/big-sur-arm64/contrib/4.1/terra_1.5-21.tgz", repos = NULL, type = .Platform$pkgType)
# shell: Rscript {0}
# - name: Instal Mac OS dependancies
# if: matrix.config.os == 'macOS-latest'
# run: |
# brew install pkg-config proj geos gdal sqlite
# run: brew install gdal
# - name: Set up GDAL
# if: matrix.config.os == 'macOS-latest'
# run: |
# GDAL_VER=$(find /usr/local/Cellar/gdal/ -name "lib" | awk -F"/" '{print $7}')
# GDAL_LDPATH=/usr/local/Cellar/gdal/$GDAL_VER/lib/
# export LIBRARY_PATH=$GDAL_LDPATH
# echo $LIBRARY_PATH
# - name: Test GDAL installation
# if: matrix.config.os == 'macOS-latest'
# run: |
# gdalinfo --version
- name: Instal Mac OS dependancies
if: matrix.config.os == 'macOS-latest'
- uses: rstudio/shiny-workflows/setup-macOS-dependencies@v1
with:
needs: check
extra-packages: rcmdcheck
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: rcmdcheck
- uses: r-lib/actions/check-r-package@v2
Work around suspend Mac OS check
Solution for Terra is probably to install with renv::install set package & set repo / install from R Univers Dev repo something link:
install.packages('terra', repos='https://rspatial.r-universe.dev')
Might need to specify respository source and type (Binary vs Source): YouTube
Build failed after add leaflet package to the project on Mac OS - Latest Dependency terra failed to install Possible source of solution: https://github.com/search?q=gdal+path%3A.github%2Fworkflows