Page 1 of 1

AnovaRM Issue

Posted: Wed May 06, 2020 4:28 pm
by JACE
Hi,

I'm having trouble with the anovaRM function in R, I think since the latest R update. The code was working a few months ago, and still works fine in a mixed ANOVA, but when I try and run with covariates I get this error:

Error in sum(covTerms) : invalid 'type' (list) of argument

I've copied fresh syntax directly from Jamovi and it still doesn't work, though it does when there are no covariates. Any suggestions?

Thanks in advance,

Re: AnovaRM Issue

Posted: Wed May 06, 2020 10:17 pm
by jonathon
hi jace,

if you can attach the data set, and a reproducible R script, i'll take a look.

apologies, the R syntax for the rm anova is a bit of a mess.

cheers

jonathon

Re: AnovaRM Issue

Posted: Thu May 07, 2020 2:48 pm
by JACE
HI Jonathon,

Thanks for looking into this - really appreciate it. I've attached a minimally reproducible code - hopefully it should work. I opened it in a new session in base R and it did work to reproduce the error code. Thank you!

Re: AnovaRM Issue

Posted: Fri May 08, 2020 12:30 am
by jonathon
hi,

this script runs just fine for me, can you double check you're using the latest version of jmv, 1.2.5? what version of R are you using?

jonathon

Re: AnovaRM Issue

Posted: Fri May 08, 2020 8:27 am
by JACE
Thanks Jonathan.

For jamovi I'm using 1.1.9 - it says internally it's up to date but I checked the website and have downloaded the latest version. The problem still occurs. Just to confirm, though, it was working perfectly within jamovi - the problem was just when using the code within R.

For R, I'm using the latest version 4.0 (2020-04-24) -- "Arbor Day". As far as I can tell, this problem with the jmv AnovaRM code only emerged after I updated.

Re: AnovaRM Issue

Posted: Fri May 08, 2020 9:23 am
by jonathon
yeah my suspicion has been that there's a breaking change in R 4 ... let me take a look.

jonathon

Re: AnovaRM Issue

Posted: Thu May 14, 2020 12:46 pm
by jonathon
OK, i've pushed a fix. you can install it with:

remotes::install_github('jamovi/jmv')

i'll push it to CRAN in the next couple of days.

cheers