A package that provides simple features access for R. Package sf:
tibbles) that have a geometry list-column
POSIXct) columns, and coordinate reference system transformations through PROJ.4
Install either from CRAN with:
this will install binary packages on Windows and MacOS, unless you configured R such that it tries to install source packages; in that case, see below.
Install development versions from github with
One way to install the dependencies is using
sudo; the other is using homebrew. For the latter, see e.g. here. Homebrew commands might be:
brew unlink gdal brew tap osgeo/osgeo4mac && brew tap --repair brew install proj brew install geos brew install udunits brew install gdal2 --with-armadillo --with-complete --with-libkml --with-unsupported brew link --force gdal2
after that, you should be able to install
sf as a source package.
According to https://github.com/r-spatial/sf/issues/349,
brew install postgis installs a working
liblwgeom. In case of problems, search the issues for
brew before opening a new one.
For MacOS Sierra, see these instruction, using kyngchaos frameworks.
For Unix-alikes, GDAL (>= 2.0.0), GEOS (>= 3.3.0) and Proj.4 (>= 4.8.0) are required;
liblwgeom is optional.
To install the dependencies on Ubuntu, either:
add ubuntugis-unstable to the package repositories:
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt-get update sudo apt-get install libgdal-dev libgeos-dev libproj-dev libudunits2-dev liblwgeom-dev
install dependencies from source; see e.g. an older travis config file for hints
<-; don’t change indentation; tab stops of 4 spaces are preferred)
This project has been realized with financial support from the