[R-SIG-Mac] lme4 fails to load in R GUI 2.8.0

Christopher David Desjardins cddesjardins at gmail.com
Wed Nov 19 21:35:24 CET 2008


R in Terminal, R in Aquamacs, and R in R.app GUI all point to the same  
location as specified by .libPaths() that is

 > .libPaths()
[1] "/Library/Frameworks/R.framework/Resources/library"

They all give this location when I run .libPaths()

I am sure I'm missing something, I appreciate your help!
Thanks,
Chris

On Nov 19, 2008, at 2:28 PM, Simon Urbanek wrote:

>
> On Nov 19, 2008, at 15:07 , Christopher David Desjardins wrote:
>
>> Thanks.  What I am still a bit confused about is why it loads in  
>> Aquamacs and from Terminal but not from R.app GUI.  This still  
>> seems like a bit of a mystery to me.
>>
>
> Because you have set different library paths in each.  
> Check .libPaths() as I was suggesting in the first e-mail.
>
> Cheers
> S
>
>
>>
>> On Nov 19, 2008, at 8:34 AM, Simon Urbanek wrote:
>>
>>>
>>> On Nov 18, 2008, at 22:30 , Christopher David Desjardins wrote:
>>>
>>>> Am I correct in thinking then that's it this old version of lme4  
>>>> that I have installed?  This version is from 14 October 2007 but  
>>>> I need this specific version for a course I'm taking.
>>>
>>> Yes, it appears so. You cannot use such an old version (binary)  
>>> with the current R. For the course it should not matter which  
>>> version you are using.
>>> If you feel brave, you can try to compile the old version from  
>>> sources in the new R (download the source .tar.gz file and use R  
>>> CMD INSTALL to install it). It may not work because old versions  
>>> are not designed to work in new R versions, but you can try your  
>>> luck if you really can't live with the new version.
>>>
>>> Cheers,
>>> S
>>>
>>>
>>>>
>>>> On Nov 18, 2008, at 8:23 PM, Simon Urbanek wrote:
>>>>
>>>>> You are picking up a very ancient binary for R 2.5.0 (as you can  
>>>>> see from the error). Check your .libPath() for old package  
>>>>> binaries and remove/reinstall them.
>>>>>
>>>>> Cheers,
>>>>> S
>>>>>
>>>>> On Nov 18, 2008, at 8:37 PM, Christopher David Desjardins wrote:
>>>>>
>>>>>> When I try to load lme4 on R (2.8.0) in the R GUI for Mac OS X,  
>>>>>> I get the following warnings and errors ...
>>>>>>
>>>>>> > library(lme4)
>>>>>> Loading required package: Matrix
>>>>>> Loading required package: lattice
>>>>>>
>>>>>> Attaching package: 'Matrix'
>>>>>>
>>>>>>
>>>>>> 	The following object(s) are masked from package:stats :
>>>>>>
>>>>>> 	 xtabs
>>>>>>
>>>>>>
>>>>>> 	The following object(s) are masked from package:base :
>>>>>>
>>>>>> 	 colMeans,
>>>>>> 	 colSums,
>>>>>> 	 rcond,
>>>>>> 	 rowMeans,
>>>>>> 	 rowSums
>>>>>>
>>>>>> Error in dyn.load(file, DLLpath = DLLpath, ...) :
>>>>>> unable to load shared library '/Library/Frameworks/R.framework/ 
>>>>>> Resources/library/lme4/libs/i386/lme4.so':
>>>>>> dlopen(/Library/Frameworks/R.framework/Resources/library/lme4/ 
>>>>>> libs/i386/lme4.so, 6): Library not loaded: /Library/Frameworks/ 
>>>>>> R.framework/Versions/2.5/Resources/lib/libRlapack.dylib
>>>>>> Referenced from: /Library/Frameworks/R.framework/Resources/ 
>>>>>> library/lme4/libs/i386/lme4.so
>>>>>> Reason: image not found
>>>>>> In addition: Warning messages:
>>>>>> 1: In namespaceImportFrom(self, asNamespace(ns)) :
>>>>>> replacing previous import: cov2cor
>>>>>> 2: In namespaceImportFrom(self, asNamespace(ns)) :
>>>>>> replacing previous import: update
>>>>>> 3: In namespaceImportFrom(self, asNamespace(ns)) :
>>>>>> replacing previous import: xtabs
>>>>>> Error: package/namespace load failed for 'lme4'
>>>>>>
>>>>>> However, I can properly load lme4 from Aquamacs via ESS and  
>>>>>> from Terminal.  I get the same warnings just not the dyn.load()  
>>>>>> error.
>>>>>>
>>>>>> Does anyone know what I need to do?
>>>>>>
>>>>>> Thanks,
>>>>>> Chris
>>>>>>
>>>>>> _______________________________________________
>>>>>> R-SIG-Mac mailing list
>>>>>> R-SIG-Mac at stat.math.ethz.ch
>>>>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>



More information about the R-SIG-Mac mailing list