[R-sig-ME] lmList error in lme4a

David A Springate david.springate at postgrad.manchester.ac.uk
Thu Jun 9 16:39:31 CEST 2011


On Thu, 2011-06-09 at 09:24 -0500, Douglas Bates wrote:
> On Thu, Jun 9, 2011 at 8:37 AM, David A Springate
> <david.springate at postgrad.manchester.ac.uk> wrote:
> > Thanks, Ben
> >
> > I re-installed lme4a from scratch and it works fine now!
> >
> > BTW if I do require(lme4a), I still see lme4 "loaded via a namespace" in
> > sessionInfo(), even if I start with R --vanilla
> 
> Must be coming from another package as lme4a does not load lme4.

It does seem to on my machine... Is this likely to be a problem? 

$ R --vanilla

R version 2.13.0 (2011-04-13)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i686-pc-linux-gnu (32-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: i686-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods
base     
> library(lme4a)
Loading required package: Matrix
Loading required package: lattice

Attaching package: 'Matrix'

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

    det

Loading required package: minqa
Loading required package: Rcpp
Loading required package: MatrixModels

Attaching package: 'lme4a'

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

    AIC, BIC

> sessionInfo()
R version 2.13.0 (2011-04-13)
Platform: i686-pc-linux-gnu (32-bit)

locale:
 [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8    
 [5] LC_MONETARY=C              LC_MESSAGES=en_GB.UTF-8   
 [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods
base     

other attached packages:
[1] lme4a_0.999375-65  MatrixModels_0.2-1 minqa_1.1.15
Rcpp_0.9.4.2      
[5] Matrix_0.999375-50 lattice_0.19-23   

loaded via a namespace (and not attached):
[1] codetools_0.2-8  grid_2.13.0      lme4_0.999375-39 nlme_3.1-100    
[5] splines_2.13.0   stats4_2.13.0   
> 
> > On Thu, 2011-06-09 at 09:11 -0400, Ben Bolker wrote:
> >> On 06/09/2011 05:35 AM, David A Springate wrote:
> >> > Dear all,
> >> >
> >> > I am trying to use the lmList function from lme4a, but I get the
> >> > following error even with the example sleepstudy dataset:
> >> >
> >> >> require(lme4a)
> >> >> lmList(Reaction ~ Days | Subject, sleepstudy)
> >> > Call: lmList(formula = Reaction ~ Days | Subject, data = sleepstudy)
> >> > Coefficients:
> >> > Error in sprintf(gettext(fmt, domain = domain), ...) :
> >> >   invalid type of argument[1]: 'language'
> >> >
> >>   It works for me ...  I would try starting from a clean session,
> >> especially making sure that you have *not* tried to load lme4 previously
> >> (I see you have it "loaded via a namespace" below).
> >> (Hmmm, I just tried loading and then detaching lme4 to get the same
> >> "loaded via namespace" effect, and it didn't break for me.)
> >>
> >>   Ben Bolker
> >>
> >>
> >>
> >>
> >> > sessionInfo()
> >> R version 2.13.0 (2011-04-13)
> >> Platform: i486-pc-linux-gnu (32-bit)
> >>
> >> locale:
> >>  [1] LC_CTYPE=en_US.utf8       LC_NUMERIC=C
> >>  [3] LC_TIME=en_US.utf8        LC_COLLATE=en_US.utf8
> >>  [5] LC_MONETARY=C             LC_MESSAGES=en_US.utf8
> >>  [7] LC_PAPER=en_US.utf8       LC_NAME=C
> >>  [9] LC_ADDRESS=C              LC_TELEPHONE=C
> >> [11] LC_MEASUREMENT=en_US.utf8 LC_IDENTIFICATION=C
> >>
> >> attached base packages:
> >> [1] stats     graphics  grDevices utils     datasets  methods   base
> >>
> >> other attached packages:
> >> [1] lme4a_0.999375-67  MatrixModels_0.2-1 minqa_1.1.15
> >> Rcpp_0.9.4.1
> >> [5] Matrix_0.999375-50 lattice_0.19-26
> >>
> >> loaded via a namespace (and not attached):
> >> [1] codetools_0.2-8 grid_2.13.0     nlme_3.1-101    splines_2.13.0
> >> [5] tools_2.13.0
> >> >
> >>
> >> > Am I missing something or is this a bug?
> >> >
> >> > Thanks,
> >> >
> >> > David
> >> >
> >> >> sessionInfo()
> >> > R version 2.13.0 (2011-04-13)
> >> > Platform: i686-pc-linux-gnu (32-bit)
> >> >
> >> > locale:
> >> >  [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
> >> >  [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
> >> >  [5] LC_MONETARY=C              LC_MESSAGES=en_GB.UTF-8
> >> >  [7] LC_PAPER=en_GB.UTF-8       LC_NAME=C
> >> >  [9] LC_ADDRESS=C               LC_TELEPHONE=C
> >> > [11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
> >> >
> >> > attached base packages:
> >> > [1] stats     graphics  grDevices utils     datasets  methods
> >> > [7] base
> >> >
> >> > other attached packages:
> >> > [1] lme4a_0.999375-67  MatrixModels_0.2-1 minqa_1.1.15
> >> > [4] Rcpp_0.9.4.2       Matrix_0.999375-50 lattice_0.19-23
> >> >
> >> > loaded via a namespace (and not attached):
> >> > [1] codetools_0.2-8  grid_2.13.0      lme4_0.999375-39
> >> > [4] nlme_3.1-100     splines_2.13.0   stats4_2.13.0
> >> > [7] tcltk_2.13.0     tools_2.13.0
> >> >
> >> >> str(sleepstudy)
> >> > 'data.frame':   180 obs. of  3 variables:
> >> >  $ Reaction: num  250 259 251 321 357 ...
> >> >  $ Days    : num  0 1 2 3 4 5 6 7 8 9 ...
> >> >  $ Subject : Factor w/ 18 levels "308","309","310",..: 1 1 1 1 1 1 ..
> >> >
> >> > _______________________________________________
> >> > R-sig-mixed-models at r-project.org mailing list
> >> > https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> >>
> >> _______________________________________________
> >> R-sig-mixed-models at r-project.org mailing list
> >> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> >
> > _______________________________________________
> > R-sig-mixed-models at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
> >




More information about the R-sig-mixed-models mailing list