I want to install rgdal for \"R version 3.2.3 (2015-12-10)\".
I downloaded and installed
Finally solved it.
Here is how I've done it! OS X 10.10.5 R 3.2.3 GDAL 1.1
gdal-config file by typing this in you shell
echo 'export PATH=/Library/Frameworks/GDAL.framework/Programs:$PATH' >> ~/.bash_profile and then source ~/.bash_profilegdalinfo --version. That should come back with something like GDAL 1.11.3, released 2015/09/16. install.packages("rgdal") works (if you've done step 1-3). However, that was not the case for me. So, proceed with 5 if you're still having troubles..tar file. sudo R CMD INSTALL –configure-args=’–with-proj-include=/usr/local/lib’ rgdal_1.1-1.tar. That still gave me an error: configure: error: proj_api.h not found in standard or given locations.
ERROR: configuration failed for package ‘rgdal’ R CMD INSTALL rgdal_1.1-1.tar --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Programs/gdal-config
--with-proj-include=/Library/Frameworks/PROJ.framework/Headers
--with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'
That should work. Try by starting R and type library(rgdal) in the R console.
Note: With rgoes I experienced similar problems. This helped me.
Try:
R CMD INSTALL rgeos_0.3-15.tar --configure-args='--with-geos-config=/Library/Frameworks/GEOS.framework/unix/bin/geos-config
--with-proj-include=/Library/Frameworks/PROJ.framework/Headers
--with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib'
For pointing to the config file. It's here /Library/Frameworks/GEOS.framework/unix/bin/geos-config