Skip to content

rgdal on mac os 10.9

9 messages · Simon Urbanek, 美彦 馬場, Manuel Spínola +3 more

#
On Apr 29, 2014, at 5:08 PM, Ian Fellows <ian.fellows at stat.ucla.edu> wrote:

            
.. and that is also the reason why it's not on or 10.9 just yet. I hope to get to building the necessary dependencies in the next week or so.

Cheers,
Simon
#
Ian,

2014/04/30 6:08?Ian Fellows <ian.fellows at stat.ucla.edu> ?????
I am using Fink version or R 3.1 and rgdal and so far with no problem.  See my test.

http://www.uclmail.net/users/babayoshihiko/fink/r/cran/cran-rgdal/index.html

?
BABA Yoshihiko
Ritsumeikan University
#
If I remember correctly, the installation from source was quite easy:
apart from the usual compilers, you need gdal installed, which installs
easily via homebrew [1]. After this, installation of rgdal from source
worked without any additional configurations?

Rainer


Ian Fellows <ian.fellows at stat.ucla.edu> writes:
Footnotes: 
[1]  http://brew.sh/
#
On 30/04/2014 13:56, Rainer M Krug wrote:
No, not really.

1) for a portable package you will need static GDAL.

2) GDAL can make use of a wide range of external software to read raster 
files: without quite a lot of the optional ones it is not much use for 
rgdal and other R packages.  Simon needs to build that for Mavericks, 
and statically too.

However, Fellows has ignored all the advice to use the Snow Leopard 
package of R 3.1.0 if he wants rgdal.  That is in the current manual 
(http://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-R-under-OS-X) 
and was posted to this list recently 
(https://stat.ethz.ch/pipermail/r-sig-mac/2014-April/010835.html).  That 
is by far the easiest solution.

  
    
#
Prof Brian Ripley <ripley at stats.ox.ac.uk> writes:
Sorry - I was talking of installing it in R via type="source" not on
CRAN. For CRAN it is definitely a different issue.


Rainer

  
    
#
Thanks for the replies everyone,

@Simon: Thank you. That will be most useful, especially for those of us with dependent packages and (shall we say) a less sophisticated user base.

@Brian: Thank you for pointing that out, though I think ?ignored" is a inappropriate word. My main concern is not for myself (I can certainly figure out how to build and install rgdal and its dependancies), but for the users of my packages that depend on rgdal.

It is good to hear that the snow leapord binaries work. I was a little hesitant to use them as your linked e-mail lists rgdal in both the ?it?s okay to use the binaries? category, and the ?it?s missing for good reason? category so I wasn?t entirely sure if a subtle binary incompatibility might crop up.

@BABA and @Rainer: I?ve had (let?s say) mixed success with fink and homebrew. Thanks for sharing your experiences.

Best,
Ian

p.s. For reference, you can install rgdal from the snow leapord repo with:

download.file("http://cran.r-project.org/bin/macosx/contrib/3.1/rgdal_0.8-16.tgz","rgdal_0.8-16.tgz?)
install.packages("sp?)
install.packages("rgdal_0.8-16.tgz",.libPaths()[1],NULL)
On Apr 30, 2014, at 9:07 AM, Rainer M Krug <Rainer at krugs.de> wrote:

            
#
On Apr 30, 2014, at 12:42 PM, Ian Fellows <ian.fellows at stat.ucla.edu> wrote:

            
Maybe more simply

install.packages('rgdal',type='mac.binary')

Use at your own risk, the binary builds use different compilers and ABIs so they are not guaranteed to be compatible. We make an effort to not make them unnecessarily incompatible, but that still doesn't guarantee compatibility.

Cheers,
Simon