[R-sig-ME] error loading Matrix (with lme4 / lme4a)

Dennis Murphy djmuser at gmail.com
Mon Jun 6 23:27:12 CEST 2011


Hi:

The problem (at least on Windows), is that you need the development
version of Matrix to get lme4a to work, but the production version of
Matrix to get lme4 to work. This is a disconnected 2 x 2 design at
present AFAICS, which basically means you can have one of lme4 or
lme4a but not the other (unless you maintain multiple versions of R on
your system, I suppose).

I ran into this problem several weeks ago. I could use lme4 with the
production version of Matrix, but got the error that David reported
when trying to load lme4a in a fresh R session. After upgrading to the
development version of Matrix, lme4a now works but lme4 does not
(which is no surprise):

> library(lme4a)
Loading required package: Matrix

Attaching package: 'Matrix'

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

    expand

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 Patched (2011-04-19 r55523)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages:
 [1] lme4a_0.999375-66  MatrixModels_0.2-1 minqa_1.1.15       Rcpp_0.9.4
 [5] Matrix_0.9996875-0 sos_1.3-0          brew_1.0-6         lattice_0.19-26
 [9] ggplot2_0.8.9      proto_0.3-9.2      reshape_0.8.4      plyr_1.5.2

loaded via a namespace (and not attached):
[1] codetools_0.2-8 nlme_3.1-101    splines_2.13.0  stats4_2.13.0

#############################
### In a separate, fresh R session:
#############################

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

Attaching package: 'Matrix'

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

    det

Error in inDL(x, as.logical(local), as.logical(now), ...) :
  function 'cholmod_l_start' not provided by package 'Matrix'
Error: package/namespace load failed for 'lme4'

> sessionInfo()
R version 2.13.0 Patched (2011-04-19 r55523)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_United States.1252
[2] LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252
[4] LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages:
[1] Matrix_0.9996875-0 lattice_0.19-26

loaded via a namespace (and not attached):
[1] grid_2.13.0   nlme_3.1-101  stats4_2.13.0



Before I upgraded Matrix, the opposite situation occurred - lme4
worked but lme4a loaded with a similar error.

Hope this is useful...
Dennis



On Thu, Jun 2, 2011 at 11:05 PM, Ben Bolker <bbolker at gmail.com> wrote:
> On 11-06-06 04:46 PM, David Atkins wrote:
>>
>> Hi all--
>>
>> After updating (from R-forge) I get the following error when I try to
>> start either lme4 or lme4a (sessionInfo below).
>
>  I would try reverting (re-installing) Matrix from CRAN unless you need
> the latest version ...
>
>
>>
>> Any ideas what's going on?
>>
>> cheers, Dave
>>
>>> library(lme4)
>> 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, ...) :
>>   function 'cholmod_l_start' not provided by package 'Matrix'
>> Error: package/namespace load failed for 'lme4'
>>
>>
>>> sessionInfo()
>> R version 2.13.0 (2011-04-13)
>> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>>
>> locale:
>> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>> other attached packages:
>> [1] Matrix_0.9996875-0 lattice_0.19-28
>>
>> loaded via a namespace (and not attached):
>> [1] grid_2.13.0   nlme_3.1-101  stats4_2.13.0
>>
>
> _______________________________________________
> 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