Skip to content
Prev 8556 / 29559 Next

rgdal

On Thu, 17 Jun 2010, tom sgouros wrote:
Your syntax for the configure.args= argument was wrong, and most likely it 
would fail on GDAL next. If you want to install from source, install 
PROJ.4 first, test it (you need the headers and the *shared* library), 
then install and test GDAL. When they are in place, determine the correct 
locations and use configure.args= without any PROJ=.

If this sounds hard, use the Kyngchaos route, which is well tried, both 
for getting the external dependencies and installing rgdal from source, or 
indeed for installing binary rgdal (William Kyngesburye is kind enough to 
keep things pretty updated).

The easiest route is to do:

setRepositories(ind=1:2)
install.packages("rgdal")

which looking at the list archives would have shown, for example google 
on:

R-sig-geo rgdal MAC

or similar. The second repository in the list is in this case on OSX at 
Oxford on CRAN extras, and the rgdal binary with bundled PROJ.4 and GDAL 
dependencies is built by Brian Ripley:

http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.11/rgdal_0.6-27.tgz

or similar for the R 2.10 and development 2.12 releases.

Unless you need extra drivers, installing from CRAN extras version is 
probably the easiest.

Roger