Skip to content
Prev 70289 / 398506 Next

lme4 package and importIntoEnv errors

Deepayan Sarkar wrote:
Thanks Deepayan.  I was about to write the same thing.

Perhaps I can add a bit more explanation.  As Deepayan mentioned, the
versions of the lme4 package are closely linked to the versions of the
Matrix package.  The R code for lmer is in the lme4 package but the
corresponding C code is in the Matrix package where it can gain access
to other C functions for sparse matrix manipulation.

When we create a release of the lme4 package we can specify the earliest
version of the Matrix package that will work with it.  However, unless
we become psychic or gain access to a time machine, we can't specify the
last version of Matrix that will work with this version of lme4.  What
you are seeing is an older version of lme4 looking for exported
functions that have been removed from a later version of the Matrix package.

There are several possible ways to resolve this difficulty but all of
them are undesirable to some extent.  For the time being we will just
recommend that you install the latest versions of lme4 and Matrix
simultaneously.