Skip to content

package raster stack function do not work

2 messages · Rafael Wüest, Tara Bridwell

#
You might need the right combination of R, GDAL, rgdal and tell R how to install properly.

The following may help. I want to state that I neither now the author of www.kyngchaos.com and its packages, nor do I anyhow profit from mentioning the website. It just helps me get R and GDAL running smoothly on my Mac...

1) install R version 2.13.2

2) install "GDAL complete" from http://www.kyngchaos.com/software:frameworks

3) download and unzip rgdal which matches with the R version your http://www.kyngchaos.com/software:frameworks

4) open shell, goto folder where you have unzipped rgdal:

R CMD INSTALL --configure-args='--with-gdal-config=/Library/Frameworks/GDAL.framework/Versions/1.8/Programs/gdal-config --with-proj-include=/opt/local/include --with-proj-lib=/opt/local/lib' rgdal

This works for me...

Rafa
On 20.01.2012, at 19:03, Sara Maxwell wrote:

            
--
Rafael W?est
Swiss Federal Research Institute WSL
Z?rcherstrasse 111
8903 Birmensdorf
Switzerland

+41 44 7392126
rafael.wueest at wsl.ch
http://www.wsl.ch/info/mitarbeitende/wueest
#
Thanks Rafael,
I was able to instal rgdal etc alright, but when I went to do anything
with the rasters, that was when I hit problems - I was told I was out
of memory (which made no sense).  I suppose it is possible I didn't
install it correctly however...

Tara
On Fri, Jan 20, 2012 at 10:12 AM, Rafael W?est <rafael.wueest at wsl.ch> wrote: