Closed oricon closed 1 year ago
The key is the line
[ Info: Swapping to afex::lmer_alt instead of lme4::g/lmer from here on out...
I think this is an issue with afex
on the R side and potentially how that interacts with some of the logic in JellyMe4.
Thanks, I removed afex and I'm getting other errors, but I think they are originating from JellyMe4.
julia> @rput rt_id_m5_j;
ERROR: ArgumentError: zerocorr for factors with more than 2 levels not supported without using afex::lmer_alt
Stacktrace:
[1] convert_julia_to_r(f::FormulaTerm
.
.
.
@ JellyMe4 ~/.julia/packages/JellyMe4/wxnld/src/formula.jl:42
[2] sexp(#unused#::Type{RCall.RClass{:lmerMod}}, x::Tuple{LinearMixedModel{Float64}, DataFrame})
@ JellyMe4 ~/.julia/packages/JellyMe4/wxnld/src/lmerMod.jl:93
[3] sexp
@ ~/.julia/packages/RCall/LWzAQ/src/convert/default.jl:0 [inlined]
[4] setindex!(e::Ptr{EnvSxp}, v::Tuple{LinearMixedModel{Float64}, DataFrame}, s::Symbol)
@ RCall ~/.julia/packages/RCall/LWzAQ/src/methods.jl:553
[5] setindex!(e::RObject{EnvSxp}, v::Tuple{LinearMixedModel{Float64}, DataFrame}, s::Symbol)
@ RCall ~/.julia/packages/RCall/LWzAQ/src/methods.jl:562
[6] top-level scope
@ REPL[12]:1
I'm not sure if this is an issue with rput or MixedModels, but I'll try here first. I've run into an issue where I cannot move a model from julia to R. It doesn't happen with most models, but when it occurs with one model, any subsequent model will cause the same issue. For example, if I run the following model, I can move it to R with
rput
and write it out.But then when I run the following model and try to move it to R I get an error. Then if I try to repeat the above
rput
command I get the error for that model as well.