[R-SIG-Mac] R 2.14.0 on MacBook Pro

Verbesselt, Jan jan.verbesselt at wur.nl
Sat Nov 12 10:35:23 CET 2011


Simon,

I have downloaded the R.app GUI (R-GUI-5944-2.14-leopard-Leopard64.dmg) from http://r.research.att.com/. Everything works fine, when launching the R.app and loading the "zoo" package.
I have deleted the R64.app which was installed with the standard R 2.14.0 currently available at R project website. This R.app is launching the R 64 bit version it seems.

An additional question related to the http://r.research.att.com/ R developers page.  I there a way to set-up some sort of updating mechanism - similar to Linux Ubuntu set-up sources.list - so that R automatically updates (after agreeing) to the most recent stable version?




Report from R.app:
[R.app GUI 1.43 (5944) x86_64-apple-darwin9.8.0]

> sessionInfo()
R version 2.14.0 (2011-10-31)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

locale:
[1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     
> install.packages("zoo")
Installing package(s) into ‘/Users/janvb/Library/R/2.14/library’
(as ‘lib’ is unspecified)
trying URL 'http://www.freestatistics.org/cran/bin/macosx/leopard/contrib/2.14/zoo_1.7-6.tgz'
Content type 'application/x-gzip' length 1397206 bytes (1.3 Mb)
opened URL
==================================================
downloaded 1.3 Mb


The downloaded packages are in
	/var/folders/zU/zUFo9cfDGwisjk7fyjDVtk+++TI/-Tmp-//RtmpCVNhCN/downloaded_packages
> require(zoo)
Loading required package: zoo

Attaching package: ‘zoo’

The following object(s) are masked from ‘package:base’:

    as.Date, as.Date.numeric

> library(zoo)
> 


thanks heaps for fast reply and support,
Jan


On 10/11/2011, at 3:41 PM, Simon Urbanek wrote:

> Jan,
> 
> On Nov 10, 2011, at 6:02 AM, Verbesselt, Jan wrote:
> 
>> Dear all,
>> 
>> I have just upgraded from 2.13.2 to 2.14.0 on my mac book pro on 10.6.8 OsX. 
>> After installing the "zoo" package -  I am unable to load the zoo package in R using R64.app.
>> 
>> What is causing this problem? Everything used to work fine in 2.13.2. Is there anything I need to fix after updating?
>> 
> 
> It is probably my fault (details below) - a quick fix is to update your R.app GUI from http://r.research.att.com/
> 
> Technical details:
> 
> Recent R binaries (but only after 2.14.0 release) use @rpath to allow re-location of the R framework - it means that you can have the entire R in just one icon that you can move around as you please - just like the R.app GUI now except that the entire R is in there and no other dependencies are needed (e.g. you can just put it on a CD or thumb drive). According to Apple documentation the default fallback to @rpath includes /Library/Frameworks which is the location of the R framework when installed, so everything that worked before with absolute paths should be working with @rpath. However, it seems that for some unknown reason the R.app binaries don't fall back to the old @rpath and/or there are some issues combining absolute paths and @rpath. The most recent build of R.app include the LC_RPATH load commands set accordingly so they don't need the fallback. It is indeed startling, because the behavior that you see in Terminal, RStudio etc. is how it is supposed to behave according to Apple documentation. Before I figure out how to solve this you can simply grab more recent R.app.
> 
> Thanks,
> Simon
> 
> 
> 
>> Strangely, I noticed that when using Rstudio or R from Terminal -> and loading the zoo package no problem occurs.
>> 
>> Thanks for your help,
>> Jan
>> 
>> 
>> sessionInfo()
>> install.packages("zoo")
>> require(zoo)
>> library(zoo)
>> 
>> 
>> .Rprofile: Setting Amsterdam repository
>> [R.app GUI 1.42 (5933) x86_64-apple-darwin9.8.0]
>> 
>>> sessionInfo()
>> R version 2.14.0 (2011-10-31)
>> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>> 
>> locale:
>> [1] en_AU.UTF-8/en_AU.UTF-8/en_AU.UTF-8/C/en_AU.UTF-8/en_AU.UTF-8
>> 
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base     
>>> install.packages("zoo")
>> Installing package(s) into ‘/Users/janvb/Library/R/2.14/library’
>> (as ‘lib’ is unspecified)
>> trying URL 'http://www.freestatistics.org/cran/bin/macosx/leopard/contrib/2.14/zoo_1.7-6.tgz'
>> Content type 'application/x-gzip' length 1397025 bytes (1.3 Mb)
>> opened URL
>> ==================================================
>> downloaded 1.3 Mb
>> 
>> 
>> The downloaded packages are in
>> 	/var/folders/zU/zUFo9cfDGwisjk7fyjDVtk+++TI/-Tmp-//RtmpHiqeQS/downloaded_packages
>>> require(zoo)
>> Loading required package: zoo
>> Error in dyn.load(file, DLLpath = DLLpath, ...) : 
>> unable to load shared object '/Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so':
>> dlopen(/Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so, 6): Library not loaded: @rpath/R.framework/Versions/2.14/Resources/lib/libR.dylib
>> Referenced from: /Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so
>> Reason: image not found
>>> library(zoo)
>> Error in dyn.load(file, DLLpath = DLLpath, ...) : 
>> unable to load shared object '/Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so':
>> dlopen(/Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so, 6): Library not loaded: @rpath/R.framework/Versions/2.14/Resources/lib/libR.dylib
>> Referenced from: /Users/janvb/Library/R/2.14/library/zoo/libs/x86_64/zoo.so
>> Reason: image not found
>> Error: package/namespace load failed for ‘zoo’
>>> '
>> 
>> _______________________________________________
>> R-SIG-Mac mailing list
>> R-SIG-Mac at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> 
> 
> 



More information about the R-SIG-Mac mailing list