From steve.kembel at gmail.com  Sat Jul 18 01:30:49 2009
From: steve.kembel at gmail.com (Steven Kembel)
Date: Fri, 17 Jul 2009 16:30:49 -0700
Subject: [Rd] Any workaround for CRAN Mac OS X compiler switch to R 2.10.0?
Message-ID: <7C4541BB-4CFB-4D30-BF4B-B61274F9A9A5@gmail.com>

Hello,

Has the CRAN compiler for Mac OS X switched to using R 2.10? I  
recently uploaded an update for the package I maintain to CRAN, and  
it's no longer possible to run the package after installing CRAN  
binaries for this package under Mac OS X 10.5 and R 2.9.1.

The package is picante 0.7-1. It passes all checks on CRAN cleanly.  
Under R 2.9.1 on Mac OS X 10.5, the package can be installed from CRAN  
binaries, but fails to load (see example output at end of this  
message). This can be worked around by installing from source.

The error seems to be related to looking for and not finding the file  
"/Library/Frameworks/R.framework/Versions/2.10/Resources/lib/ 
libR.dylib" when installed from binaries.

Is anyone else experiencing this, and is there some workaround?

Thanks,
Steve

Code to replicate this problem (R 2.9.1, Mac OS X 10.5):

 > install.packages('picante')
trying URL 'http://ftp5.gwdg.de/pub/misc/cran/bin/macosx/universal/contrib/2.9/picante_0.7-1.tgz'
Content type 'application/x-gzip' length 117452 bytes (114 Kb)
opened URL
==================================================
downloaded 114 Kb

The downloaded packages are in
	/var/folders/Ei/EiJQkAf0G-WsCO80yfEpKU+++TI/-Tmp-//RtmpZUZOIo/ 
downloaded_packages
 > library(picante)
Loading required package: ape
Loading required package: vegan
This is vegan 1.15-3
Loading required package: nlme
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared library '/Library/Frameworks/R.framework/ 
Resources/library/picante/libs/i386/picante.so':
dlopen(/Library/Frameworks/R.framework/Resources/library/picante/libs/ 
i386/picante.so, 6): Library not loaded: /Library/Frameworks/ 
R.framework/Versions/2.10/Resources/lib/libR.dylib
Referenced from: /Library/Frameworks/R.framework/Resources/library/ 
picante/libs/i386/picante.so
Reason: image not found
In addition: Warning message:
package 'picante' was built under R version 2.10.0
Error in library(picante) : .First.lib failed for 'picante'
 >



[Rd] Any workaround for CRAN Mac OS X compiler switch to R 2.10.0?
Steven Kembel