install rgdal and gdal in MacosX: remove previous installation

I had an error when I tried to update rgdal. It said that gdal 2.1.4 was installed whereas brew installed version 3.1
The 2.1.4 version was installed previously manually in :
/Library/Frameworks

I remove the gdal folder, installed gdal using brew and all is ok now:
brew install gdal

and in R:
install.packages("rgdal")

Note that rgdal should be replaced by terra in future

Commentaires

Posts les plus consultés de ce blog

Standard error from Hessian Matrix... what can be done when problem occurs

stepAIC from package MASS with AICc

Install treemix in ubuntu 20.04