# Ubuntu 16.04
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install gdal-bin libgdal-dev libgeos-dev libproj-dev libudunits2-dev
brew tap osgeo/osgeos4mac
brew install gdal2-python
brew link --force gdal2-python
install.packages(c("rgeos", "sp"), type = "source")
install.packages("rgdal", type = "source", configure.args = c("--with-proj-include=/usr/local/include", "--with-proj-lib=/usr/local/lib"))install.packages("sf", type = "source")
sudo add-apt-repository ppa:marutter/c2d4u
sudo apt-get update
sudo apt install r-cran-pkgname