I tried to install sf
in R with install.packages("sf")
, but encountered this issue.
> install.packages("sf")
...
checking GDAL version >= 2.0.0... no
configure: error: sf is not compatible with GDAL versions below 2.0.0
ERROR: configuration failed for package ‘sf’
...
I got the version of rgdal
with library(rgdal)
, 1.2-13
. I tried to use > update.packages("rgdal")
to upgrade rgdal
. However, the problem still exists.
How can I upgrade rgdal
to the newest version?