[R-sig-Geo] Help with rgdal on MACOS

Agustin Lobo alobolistas at gmail.com
Thu Dec 23 08:06:36 CET 2010


Dea all,

Quite a number of students will be using MAC for a course in which we
will make use
of rgdal and raster. As I do not have an easy access to MAC machines
and I've found quite
a number of different options, I'm seeking some clarifications.

Students will have gdal and other dependencies installed from
kyngchaos as they should have QGIS installed.
Under these circumstances, which alternative is better:

1. As suggested by Roger in
http://r-sig-geo.2731867.n2.nabble.com/rgdal-on-MAC-td5073766.html
> setRepositories(ind=1:2)
> install.packages('rgdal')

2. Install rgdal from source.
2.1. As stated at the end of
http://spatialanalysis.co.uk/2010/11/02/installing-rgdal-on-mac-os-x/
> R CMD INSTALL
 –configure-args=”–with-gdal-config=/Library/Frameworks/GDAL.framework/unix/bin/gdal-config
 –with-proj-lib=/Library/Frameworks/PROJ.framework/unix/lib
 –with-proj-include=/Library/Frameworks/PROJ.framework/unix/include”
rgdal_0.6-20.tar.gz
2.2. Using homebrew:
brew install gdal
R CMD INSTALL –configure-args=’–with-proj-include=/usr/local/lib’
rgdal_0.6-28.tar.gz
(in this case, is the brew command using the kyngchaos gdal?)

3. Other alternatives

Thanks

Agus



More information about the R-sig-Geo mailing list