Unable to install ‘sf’ R package on Ubuntu 16.04 LTS
This worked for me. Using
sudo aptitude install libgdal-dev
and then
devtools::install_github("r-spatial/sf")
For Arch users make sure you have gcc-fortran
installed as the dependencies of sf
require it specially if you are compiling from source.
sudo pacman -S gcc-fortran
Then make sure you have the following packages installed.
sudo pacman -S gdal proj geos
Finally udunits
is not available in the main repos but in AUR repositories.
git clone https://aur.archlinux.org/udunits.git
cd udunits/
makepkg -si
You may use yay
if you please.