[R] Unable to load package:lme4 [ Ubuntu 9.04 ]

Martin Maechler maechler at stat.math.ethz.ch
Wed Jun 10 11:15:26 CEST 2009


>>>>> "GAR" == Girish A R <garamach at gmail.com>
>>>>>     on Wed, 10 Jun 2009 02:06:57 -0700 (PDT) writes:

    GAR> Hi Martin,
    GAR> I upgraded to R 2.9.0, but still have the same problem. The error
    GAR> message, output of packageDescription("lme4"), and sessionInfo() are
    GAR> displayed below.

    GAR> Thanks,
    GAR> -Girish

    GAR> --------------------------------------------------------------
    >> library(lme4)
    GAR> Loading required package: Matrix
    GAR> Loading required package: lattice

    GAR> Attaching package: 'Matrix'

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

    GAR> xtabs

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

    GAR> rcond

    GAR> Error in dyn.load(file, DLLpath = DLLpath, ...) :
    GAR> function 'cholmod_start' not provided by package 'Matrix'
    GAR> Error: package/namespace load failed for 'lme4'

    GAR> ----------------------------------------------------------------

    >> packageDescription("lme4")
    GAR> Package: lme4
    GAR> Version: 0.999375-28
    GAR> Date: 2008-12-13
    GAR> Title: Linear mixed-effects models using S4 classes
    GAR> Author: Douglas Bates <bates at stat.wisc.edu>, Martin Maechler
    GAR> <maechler at R-project.org> and Bin Dai <dai at stat.wisc.edu>
    GAR> Maintainer: Douglas Bates <bates at stat.wisc.edu>
    GAR> Description: Fit linear and generalized linear mixed-effects models.
    GAR> Depends: methods, R(>= 2.7.0), Matrix(>= 0.999375-11), lattice
    GAR> LinkingTo: Matrix, stats
    GAR> Imports: graphics, stats
    GAR> Suggests: mlmRev, MEMSS
    GAR> LazyLoad: yes
    GAR> LazyData: yes
    GAR> License: GPL (>=2)
    GAR> URL: http://lme4.r-forge.r-project.org/
    GAR> Packaged: Sat Dec 13 20:07:38 2008; maechler
    GAR> Built: R 2.8.0; x86_64-pc-linux-gnu; 2008-12-15 13:58:54; unix
    	 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

i.e. installed a while ago, and *not* reinstalled recently

Try to re-install both Matrix and then lme4 using your current R version
2.9.0.

Apart from that, yes, you are indeed using current versions of
Matrix and lme4...

Martin


    GAR> -- File: /usr/lib/R/site-library/lme4/Meta/package.rds
    GAR> ------------------------------------------------------------------------
    >> sessionInfo()
    GAR> R version 2.9.0 (2009-04-17)
    GAR> x86_64-pc-linux-gnu


    GAR> locale:
    GAR> LC_CTYPE=en_IN;LC_NUMERIC=C;LC_TIME=en_IN;LC_COLLATE=en_IN;LC_MONETARY=C;LC_MESSAGES=en_IN;LC_PAPER=en_IN;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_IN;LC_IDENTIFICATION=C

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

    GAR> other attached packages:
    GAR> [1] Matrix_0.999375-27 lattice_0.17-25

    GAR> loaded via a namespace (and not attached):
    GAR> [1] grid_2.9.0

    GAR> ==============================================================================================

    GAR> On Jun 10, 1:43 pm, Martin Maechler <maech... at stat.math.ethz.ch>
    GAR> wrote:

    >> How did you re-install Matrix?
    >> Your version   Matrix_0.999375-17  (indicated below)
    >> is a bit old, and indeed probably too old for the version of
    >> lme4 you've tried.
    >> Can you call
    >>     packageDescription("lme4")
    >> without an error {probably not}, or at least
    >> 
    >>     library(help = "lme4")
    >> 
    >> the output of these would show you the version of Matrix you
    >> need at least.
    >> 
    >> Ideally you'd upgrade your version of R (to 2.9.0) as well,
    >> since the latest couple of versions of Matrix all have
    >> "R >= 2.9.0" in their dependency requirements.
    >> 
    >> Regards,
    >> Martin Maechler




More information about the R-help mailing list