[R] lme4 install trouble

David Reitter dreitter at inf.ed.ac.uk
Thu Oct 11 13:01:13 CEST 2007


After upgrading to R 2.6.0, I'm having trouble running lmer:

model <-  lmer(primed ~ log(dist.time)*role + 1|target.utt,   
data=data.utts)
Error in UseMethod("as.logical") : no applicable method for "as.logical"

So I thought I'd upgrade lme4 to the latest version, but  
unfortunately the compilation fails - perhaps there's a missing  
#include:

R CMD INSTALL -l ~/usr/lib/R lme4_0.99875-8.tar.gz
* Installing *source* package 'lme4' ...
** libs
gcc -std=gnu99 -I/home/dreitter/usr/lib/R/include -I/home/dreitter/ 
usr/lib/R/include  -I/usr/local/include -I"/home/dreitter/usr/lib/R/ 
library/Matrix/include"   -fpic  -g -O2 -c glmer.c -o glmer.o
glmer.c: In function ‘internal_Gaussian_deviance’:
glmer.c:185: error: ‘CHM_SP’ undeclared (first use in this function)
glmer.c:185: error: (Each undeclared identifier is reported only once
glmer.c:185: error: for each function it appears in.)
glmer.c:185: error: expected ‘;’ before ‘Lm’
glmer.c:186: error: ‘CHM_FR’ undeclared (first use in this function)
glmer.c:186: error: expected ‘;’ before ‘Lcp’
glmer.c:189: error: ‘CHM_DN’ undeclared (first use in this function)
glmer.c:189: error: expected ‘;’ before ‘Ltb’
glmer.c:195: error: ‘Lcp’ undeclared (first use in this function)
glmer.c:196: error: ‘Lm’ undeclared (first use in this function)
glmer.c:197: error: ‘chb’ undeclared (first use in this function)
glmer.c:197: error: ‘Ltb’ undeclared (first use in this function)
glmer.c: In function ‘internal_bhat’:
glmer.c:396: error: ‘CHM_FR’ undeclared (first use in this function)
glmer.c:396: error: expected ‘;’ before ‘L’
glmer.c:403: error: ‘L’ undeclared (first use in this function)
glmer.c: In function ‘glmer_MCMCsamp’:
glmer.c:657: error: ‘CHM_FR’ undeclared (first use in this function)
glmer.c:657: error: expected ‘;’ before ‘L’
glmer.c:680: error: ‘L’ undeclared (first use in this function)
make: *** [glmer.o] Error 1
ERROR: compilation failed for package 'lme4'

I've installed Matrix_0.999375-3 and lattice_0.16-5.

Any pointers would be appreciated.


--
David Reitter
ICCS/HCRC, Informatics, University of Edinburgh
http://www.david-reitter.com



More information about the R-help mailing list