<html><body><div>Yes, thank you Very much! -- that is just what I needed. For my purposes, the standard drivers for rgdal provided from CRAN will more than meet my needs.</div><div><br></div><div>So for the record, I did the following:</div><div><br></div><div><div>> setRepositories(ind=1:2)</div><div>> install.packages("rgdal")</div></div><div><br></div><div>And then;</div><div><br></div><div><div>> library(rgdal)</div><div>Geospatial Data Abstraction Library extensions to R successfully loaded</div><div>Loaded GDAL runtime: GDAL 1.8.0, released 2011/01/12</div><div>Path to GDAL shared files: /Users/robinhunnewell/Library/R/2.13/library/rgdal/gdal</div><div>Loaded PROJ.4 runtime: Rel. 4.7.1, 23 September 2009</div><div>Path to PROJ.4 shared files: /Users/robinhunnewell/Library/R/2.13/library/rgdal/proj</div></div><div><br></div><div>All set now.</div><div>Thanks so much, </div><div><br></div><div>Robin</div><div><br></div><div><br>On 03 May, 2011,at 03:22 PM, Roger Bivand <Roger.Bivand@nhh.no> wrote:<br><br></div><div><blockquote type="cite"><div class="msg-quote"><div class="_stretch">On Tue, 3 May 2011, Robin W Hunnewell wrote:<br>
<br>
> Thank you. sorry if this is basic; had just hoped to find a step-by-step <br>
> guide for Idiots on how to install GDAL and rgdal on OSX. <br>
><br>
> I downloaded the comprehensive GDAL framework provided by William <br>
> Kyngesburye:<br>
><br>
> <a href="http://www.kyngchaos.com/" _mce_href="http://www.kyngchaoscom/">http://www.kyngchaos.com/</a><br>
><br>
> Help and 'read me' files say to install the GDAL framework with dependencies <br>
> first, then an rgdal binary from the same site.<br>
> But I'm not sure how to compile and configure GDAL the right way - so that it <br>
> gets to the R library and can then be located.<br>
> I'm sure it's just a basic step, but for someone new to this it's a little <br>
> confusing..<br>
> Thanks very much for the URL below, will try to work it through<br>
<br>
If you do not need drivers other than the standard ones (shapefile, <br>
geotiff, etc.), within R do only:<br>
<br>
setRepositories(ind=1:2)<br>
install.packages("rgdal")<br>
<br>
Only use Kyngchaos if you need GDAL and the frameworks for other purposes <br>
other than rgdal, or if you need extra drivers for rgdal not provided as <br>
standard from CRAN extras.<br>
<br>
Please report back if this meets your needs.<br>
<br>
Roger<br>
<br>
><br>
><br>
><br>
> On 03 May, 2011,at 02:21 PM, Roger Bivand <<a href="mailto:Roger.Bivand@nhh.no" _mce_href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a>> wrote:<br>
><br>
> On Tue, 3 May 2011, Robin W Hunnewell wrote:<br>
><br>
>> Hi, <br>
>><br>
>> Could you - or any other mac users who've been successful installing rgdal <br>
> - <br>
>> elaborate how you did it? <br>
><br>
> Usually, OSX users say setRepositories(ind=1:2) to install from CRAN and <br>
> CRAN extras, where OSX binaries for R 2.13 are provided by Prof. Brian <br>
> Ripley. The direct URL is:<br>
><br>
> <a href="http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.13/" _mce_href="http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.13/">http://www.stats.ox.ac.uk/pub/RWin/bin/macosx/leopard/contrib/2.13/</a><br>
><br>
> This has static GDAL and standard drivers. Kyngchaos now also has an R <br>
> 2.13 binary, which depends on the frameworks also provided there - it was <br>
> added recently at user request, and provides a larger number of drivers.<br>
><br>
> Roger<br>
><br>
>><br>
>> I'm trying to install rgdal in my iMac (os X 10.6.7). I have latest Mac R <br>
>> app. version 2.13.0 <br>
>> I downloaded the GDAL framework 1.8 and its dependencies from the kyngchaos <br>
>> site -- under the GDAL section of the page: <br>
>><br>
>> <a href="http://www.kyngchaos.com/software/frameworks" _mce_href="http://www.kyngchaos.com/software/frameworks">http://www.kyngchaos.com/software/frameworks</a><br>
>><br>
>><br>
>> But not sure the that the installation has put it in the right <br>
> configuration, <br>
>> path for loading into R.<br>
>><br>
>> In R, I installed and loaded library 'sp' which rgdal needs..<br>
>><br>
>> Then tried to install the GDAL package - I go to the R Package <br>
>> Installer, select 'Local Binary Package' from the popup, then click <br>
>> 'Install..'. <br>
>> I was able to locate and select the rgdal tarball to install and load it <br>
> for <br>
>> use in R, but get error message:<br>
>> 1: 'tar' returned non-zero exit code 1 2: In file.rename(file.path(tmpDir, <br>
>> pkgname), instPath) :<br>
>> cannot rename file <br>
>> '/Users/robinhunnewell/Library/R/2.13/library/file3af03e3f/GDAL' to <br>
>> '/Users/robinhunnewell/Library/R/2.13/library/GDAL', reason 'No such file <br>
> or <br>
>> directory'<br>
>> 3: unable to move temporary installation <br>
>> '/Users/robinhunnewell/Library/R/2.13/library/file3af03e3f/GDAL' to <br>
>> '/Users/robinhunnewell/Library/R/2.13/library/GDAL' <br>
>> Is it because GDAL is not in the right place? Thanks v much if anyone can <br>
>> anyone help!<br>
>> Robin<br>
>><br>
>> On 02 May, 2011,at 11:23 AM, Christopher Fusting <<a href="mailto:cfusting@gmail.com" _mce_href="mailto:cfusting@gmail.com">cfusting@gmail.com</a>> <br>
> wrote:<br>
>><br>
>> I had a similar problem. The port under the GDAL section of this page<br>
>> worked for me:<br>
>><br>
>> <a href="http://www.kyngchaos.com/software/frameworks" _mce_href="http://www.kyngchaos.com/software/frameworks">http://www.kyngchaos.com/software/frameworks</a><br>
>><br>
>> _Chris<br>
>><br>
>> 2011/5/2 Ant???nio M. Rodrigues <amcrgrodrigues@gmailcom><br>
>><br>
>>> Hi,<br>
>>> <br>
>>> <br>
>>> I'm trying to instal library rgdal in my macbook (os X 10.6.7).<br>
>>> <br>
>>> <br>
>>> I have installed the latest R package (R-2.13.0.pkg).<br>
>>> <br>
>>> <br>
>>> I have gdal 1.8 install. Also, I have loaded library sp which rgdal needs.<br>
>>> <br>
>>> <br>
>>> I downloaded rdgal_06-33.tgz and using R Package installer, I located and<br>
>>> installed the Local Binary Package.<br>
>>> <br>
>>> <br>
>>> When trying to load rgdal ( >library(rgdal)in the R prompt) I get the<br>
>>> error:<br>
>>> <br>
>>> <br>
>>> -----<br>
>>> <br>
>>> Error : onLoad failed in loadNamespace() for 'rgdal', details:<br>
>>> <br>
>>> call: fun(..)<br>
>>> <br>
>>> error:<br>
>>> <br>
>>> GDAL Error 1: dlopen(/Library/Application<br>
>>> Support/GDAL/1.8/PlugIns/gdal_GRASS.dylib, 1): Library not loaded:<br>
>>> /Applications/GRASS-6.4.app/Contents/MacOS/lib/libgrass_gis.dylib<br>
>>> <br>
>>> Referenced from: /Library/Application<br>
>>> Support/GDAL/1.8/PlugIns/gdal_GRASSdylib<br>
>>> <br>
>>> Reason: image not found<br>
>>> <br>
>>> <br>
>>> Error: package/namespace load failed for 'rgdal'<br>
>>> <br>
>>> -----<br>
>>> <br>
>>> <br>
>>> Any help will be much appreciated.<br>
>>> <br>
>>> thanks,<br>
>>> <br>
>>> Ant???nio<br>
>>> <br>
>>> [[alternative HTML version deleted]]<br>
>>> <br>
>>> <br>
>>> _______________________________________________<br>
>>> R-sig-Geo mailing list<br>
>>> <a href="mailto:R-sig-Geo@r-project.org" _mce_href="mailto:R-sig-Geo@r-project.org">R-sig-Geo@r-project.org</a><br>
>>> <a href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo" _mce_href="https://stat.ethz.ch/mailman/listinfo/r-sig-geo">https://stat.ethz.ch/mailman/listinfo/r-sig-geo</a><br>
>>> <br>
>>> <br>
>><br>
>><br>
>><br>
><br>
><br>
<br>
-- <br>
Roger Bivand<br>
Economic Geography Section, Department of Economics, Norwegian School of<br>
Economics and Business Administration, Helleveien 30, N-5045 Bergen,<br>
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43<br>
e-mail: <a href="mailto:Roger.Bivand@nhh.no" _mce_href="mailto:Roger.Bivand@nhh.no">Roger.Bivand@nhh.no</a><br>
</div></div></blockquote></div></body></html>