Skip to content
Prev 305713 / 398506 Next

"eval" inside a function call in connection with updating the data slot in the call of lmer

On 12-09-17 6:26 PM, S?ren H?jsgaard wrote:
I get the failure in 1), not in 3).  I think it's a bug.  The problem 
appears to be that the update method for mer objects looks in the wrong 
place for its variables.  It is looking in parent.frame() (i.e. in the 
caller), but the caller isn't you.  The method should be looking in 
parent.frame(2).

You can fix this yourself if you have the lme4 source (it's line 1483 of 
lmer.R in version 0.999999-0) but you probably want to send your sample 
code to the maintainers.  Making that change might break something else.

Duncan Murdoch