Skip to content

LME4 not loading

4 messages · Heidi Bissell, Simon Urbanek, Alan Kelly

#
Martin, my experience may only add to the confusion.  When I upgraded to 2.11 on
my office Mac I had a similar problem when loading lme4 from CRAN.  However, I
found the package on R-forge and successfully installed it. On trying the same
procedure on my home Mac running 2.11.1, this approach fails with the following
error (this differs from yours):
Loading required package: Matrix
Loading required package: lattice

Attaching package: 'Matrix'

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

    det

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: /usr/local/lib/libgfortran.2.dylib
  Referenced from:
/Library/Frameworks/R.framework/Resources/library/lme4/libs/i386/lme4.so
  Reason: image not found
Error: package/namespace load failed for 'lme4'

And you will not be able to load "arm" as this depends on "lme4".
Frustrating....
Regards,
Alan

Alan Kelly
Trinity College Dublin

Quoting r-sig-mac-request at stat.math.ethz.ch:
#
On Jul 28, 2010, at 6:34 AM, Alan Kelly wrote:

            
The Rforge is not mapping libgfortran correctly hence the error. You can work around that by installing gfortran from CRAN - but please read on instead.
I have created extra "untested" repository for this, you can now install lme4 (CRAN version but ignoring check failures) using

install.packages("lme4",,"http://r.research.att.com/",type='mac.binary.untested')


Cheers,
Simon
#
Simon's solution worked perfectly.
Many thanks for assistance Simon.
Alan

Dr. Alan Kelly
Senior Lecturer in Biostatistics
Director of the Small Area Health Research Unit (SAHRU)
Department of Public Health & Primary Care
Trinity College Centre for Health Sciences
Adelaide & Meath Hospital
Tallaght
Dublin 24



Quoting Simon Urbanek <simon.urbanek at r-project.org>:
dlopen(/Library/Frameworks/R.framework/Resources/library/lme4/libs/i386/lme4.so,
install.packages("lme4",,"http://r.research.att.com/",type='mac.binary.untested')
--