Skip to content
Prev 2641 / 12125 Next

[R-pkg-devel] NOTE regarding dependencies in R code: Missing or unexported object

I don't think 'summary' is actually exported by lmerTest (version >=  3.0-0):

library(lmerTest)
fm <- lmer(Informed.liking ~ Gender + Information * Product + (1 | Consumer) +
             (1 | Consumer:Product), data=ham)
lmerTest::summary(fm) # gives: Error: 'summary' is not an exported
object from 'namespace:lmerTest'

On the other hand

summary(fm)

works just fine. lmerTest defines the S3 method 'summary' for
'lmerModLmerTest' objects, so if you change  sx <-
lmerTest::summary(x)  to  sx <- summary(x) you should be fine assuming
that x is of class 'lmerModLmerTest'.

For more details see
https://stat.ethz.ch/pipermail/r-sig-mixed-models/2018q1/026596.html
and perhaps https://github.com/runehaubo/lmerTestR/blob/master/pkg_notes/new_lmerTest.pdf
(which you were also pointed to previously).

Best regards
Rune


On 20 April 2018 at 21:53, David Herv?s via R-package-devel
<r-package-devel at r-project.org> wrote:
This seems to be from an older version of lmerTest.
Have you checked that you are using a recent version of lmerTest with
3.4.4 and 3.5 RC? I think that might explain the diff.