0

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?

SparkAndShine
  • 15,667
  • 17
  • 84
  • 129

1 Answers1

0

the problem is not related with rgdal package. You need to install gdal in your computer.