[R] Problem of lmer under FreeBSD

ronggui ronggui.huang at gmail.com
Thu Dec 27 13:07:49 CET 2007


Dear Rainer,

Thanks for your suggestion.

The problem lies in the Matrix package. I installed it under R-2.5.0.
When I upgraded R to R-2.6.0, I didn't upgrade all the add-on
packages. I reinstall Matrix and lme4 packages, things are going fine.

Regards

Ronggui HUANG

2007/12/27, Rainer Hurling <rhurlin at gwdg.de>:
> Hello Ronggui Huang,
>
> I am working with FreeBSD 8.0-CURRENT (i386) and R-2.6.1 (not built from
> ports). After loading version 0.99875-9 of lme4 and then executing the
> example
>
>    library(lme4)
>    example(lmer)
>
> all works fine for me.
>
>
> On 27.12.2007 09:19 (UTC+1), Ronggui wrote:
> > I encounter such problem with lmer under FreeBSD, but not under
> > Windows. Anyone knows why? Thanks.
>
> Assuming, that your R installation is correct (from math/R ?), you
> should consider to reinstall lme4 and its dependencies. It is possible
> that these package have been built on a prior version of R.
>
> For installing the package 'Matrix' on FreeBSD you have to use
> gmake instead of make. The following example will do it
>
> setenv MAKE gmake
> R CMD INSTALL Matrix_0.999375-3.tar.gz
> unsetenv MAKE
>
> If reinstalling packages not solves your problem, please try if
> reinstalling R does. (Under FreeBSD the R sources build and install
> fine, so there is no need to use the port at math/R ...)
>
> Hope this helps,
> Rainer
>
>
> >> example(lmer)
> >
> > lmer> (fm1 <- lmer(Reaction ~ Days + (Days|Subject), sleepstudy))
> > Error in UseMethod("as.logical") : no applicable method for "as.logical"
> >> traceback()
> > 9: as.logical(EMverbose)
> > 8: as.logical(EMverbose)
> > 7: lmerControl()
> > 6: do.call("lmerControl", control)
> > 5: lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
> > 4: eval.with.vis(expr, envir, enclos)
> > 3: eval.with.vis(ei, envir)
> > 2: source(zfile, local, echo = echo, prompt.echo = paste(prompt.prefix,
> >        getOption("prompt"), sep = ""), continue.echo = paste(prompt.prefix,
> >        getOption("continue"), sep = ""), verbose = verbose,
> > max.deparse.length = Inf,
> >        encoding = encoding, skip.echo = skips)
> > 1: example(lmer)
> >
> >> sessionInfo()
> > R version 2.6.0 (2007-10-03)
> > i386-portbld-freebsd6.3
> >
> > locale:
> > C
> >
> > attached base packages:
> > [1] stats     graphics  grDevices utils     datasets  methods   base
> >
> > other attached packages:
> > [1] lme4_0.99875-9    Matrix_0.999375-2 lattice_0.16-5
> >
> > loaded via a namespace (and not attached):
> > [1] grid_2.6.0      rcompgen_0.1-15 tools_2.6.0
>
>
>


-- 
Ronggui Huang

Department of Sociology, Fudan University, Shanghai, China

Department of Public and Social Administration, CityU, HK



More information about the R-help mailing list