singmann / afex

Analysis of Factorial EXperiments (R package)
119 stars 32 forks source link

Error in ctrl$optimizer <- optimizer[..i] : object of type 'symbol' is not subsettable #122

Open tib-sim opened 1 year ago

tib-sim commented 1 year ago

Hi, I am getting an error since I updated Rstudio, R and all the packages including afex. When I ran a model that was working before I am getting a error that I did not have before.

Error in ctrl$optimizer <- optimizer[..i] : object of type 'symbol' is not subsettable

object= mixed(Y ~ Cond1*Cond2+ (1+Cond1+Cond2|Subj), data= ds, type=2, method = "LRT", all_fit = T,control=cntrl.lmer)

cntrl.lmer is defined as follows cntrl.lmer= lmerControl(optimizer="bobyqa", optCtrl=list(maxfun=50000))

I am not sure how I can solve it and what it means exactly.