Skip to content

Instantly share code, notes, and snippets.

@benfasoli
Last active October 16, 2019 18:51
Show Gist options
  • Save benfasoli/c1ed43c7350a6253fed3bfd4e17743ef to your computer and use it in GitHub Desktop.
Save benfasoli/c1ed43c7350a6253fed3bfd4e17743ef to your computer and use it in GitHub Desktop.
Configure proj4 and gdal libraries within user scope
#!/bin/bash
# source <(wget https://gist.github.com/benfasoli/c1ed43c7350a6253fed3bfd4e17743ef/raw/ -O -)
set -e
# Configure miniconda installation within user scope
source <(wget https://gist.githubusercontent.com/benfasoli/a7193b2bdd59e1b930efcb7facd6d12e/raw/ -O -)
conda update --all -y
conda install -y -c conda-forge --strict-channel-priority proj4 gdal
Rscript -e "install.packages('rgdal', type='source', repos='https://cran.rstudio.com')"
Rscript -e "library(rgdal)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment