-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lmer. Error in deparse1(x[[3]]): could not find function "deparse1" when running multilevel models #649
Comments
Please don't cross-post here and on Stack Overflow. This error is surprising; although PS I wonder if we need to conditionally export |
Thank you so much for your prompt reply, Ben. I have closed the enquiry on Stack Overflow. Do apologise for the confusion. I have tried to run the null model with the built-in example. Unfortunately, it returns with the same error message. As for the As you said, Do apologise for the confusion. And many thanks for your help. |
Well, it ought to work with R 3.6.1. It's just a nuisance to find a platform for debugging it. Maybe I'll finally figure out how to use rocker: https://hub.docker.com/r/rocker/r-ver I have docker installed already, so according to this:
Seems to be working so far but haven't gotten up to an actual test yet ... |
I've been surprised too by this problem. I think I know what's going on: @YiyangGao uses WIndows and hence will have got a binary installed package lme4 which was "built" using R 4.0.x or even R 4.1.x AND for binary builds, the check for the R version happens at install time and the need for old compatibility wrappers is determined at that time... when a more modern version of R is in use. I recommend Yiyang Gao install the 'Rtools' for Windows (but you need the old "tools36" !) and then install the package from the source instead of binary:
For us (as lme4 maintainers) to solve this correctly in this age (where so much happens at install time) we'd need a more ugly solution, putting all those compatibility definitions inside |
Thank you both for your great support @bbolker @mmaechler Really appreciate it. I have just found the old version of lme4, I do apologse for the confusion. And many many thanks for your support. Do appreciate. |
@mmaechler , am I correct in thinking that our assignments of functions inside assign('...names', envir = topenv(),
function() eval(quote(names(list(...))), sys.frame(-1L))) (the accepted answer in this SO question uses |
Well, I'm guessing (haven't tried) that even more compactly, you'd be able to use
or actually, if you have
which would make the code a " generic role model " more generally. and then for each object (here, function) to use |
fixed in cf4bdcb |
Hi there, I am running multilevel models with lme4. When I fit the null model,
nullmodel <- lmer(mathscore ~ (1| schoolid), data = census)
I received an error message saying "Error` in deparse1(x[[3]]): could not find function "deparse1"".
Google says I may need to update the package backports. But I still receive the error message even with the package updated. May I please know what is the problem here?
Many thanks for your help.
The text was updated successfully, but these errors were encountered: