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
Error when passing formula to mixed() with more than 60 characters #5
Comments
The reason for this bug is the (by default) 60 characters limit of
The problem can be pushed to only appear with a formula of length 500 characters by simply changing the |
@smithdanielle Thanks a lot for reporting that. Very helpful. Please let me know if you find anything else. |
Is there an easy way on the user side to adjust the width.cutoff? I have a formula with 597 characters (long variable names from another program) and was not able to open the source files to edit this line. Thank you. |
I first noticed this problem within my own data, but have since been able to replicate it with a built-in dataset.
I can't quite figure out the pattern, but here's what I've found so far; when specifying a formula with up to four fixed terms,
afex
'smixed
function works as expected:However, when specifying a formula with five or more fixed terms, it seems that
mixed
is unable to parse any term from the fifth onward, and an error is thrown up as a result:In cases where a working formula is specified, this warning message always appears:
lmer
is still working as expected:All these formulas used to work in a previous version of
afex
(afraid I don't know exactly what I was running... whatever the most up-to-date version was in March 2015).SessionInfo() can be seen here.
EDIT: I can confirm that
mixed
gives the expected output for the following formula when usingafex 0.13-145
from CRAN, though I do get an error regarding object length, as above:The text was updated successfully, but these errors were encountered: