Page 1 of 1

Failure to install new module when following module tutorial

Posted: Wed Jul 04, 2018 9:50 am
by BenK
Hi!

I'm following the tutorial for learning to write own modules:

https://dev.jamovi.org/tuts0101-getting-started.html

My jmvtools::check is all good, but my jmvtools::install throws a compilation error that I don't follow (see below). Any help much appreciated!

Code: Select all

> jmvtools::check(home='C:\\Program Files\\jamovi 0.9.1.6')

jamovi compiler

jamovi found at C:\Program Files\jamovi 0.9.1.6\bin\jamovi.exe
> options(jamovi_home='C:\\Program Files\\jamovi 0.9.1.6')
> jmvtools::install()

jamovi compiler

jamovi found at C:\Program Files\jamovi 0.9.1.6\bin\jamovi.exe

Unable to compile 'anova.a.yaml':
        needs to be upgraded to a higher jas level


Re: Failure to install new module when following module tuto

Posted: Wed Jul 04, 2018 10:12 am
by jonathon
hmm, i'm a bit puzzled by this - it suggests your jmvtools isn't completely up-to-date, but i assume if you're following the tutorial you've *only just* installed jmvtools.

if you change the 'jas' in the .a.yaml file to '1.2' (rather than '1.1'?) you should be in business.

cheers

jonathon

Re: Failure to install new module when following module tuto

Posted: Wed Jul 04, 2018 10:19 am
by jonathon
i.e. this is the template that should be used when going jmvtools::addAnalysis():

https://github.com/jamovi/jmvtools/blob ... tes/a.yaml

so i'm puzzled with how you've ended up with (presumably) a 1.1 in your file.

jonathon

Re: Failure to install new module when following module tuto

Posted: Wed Jul 04, 2018 10:38 am
by BenK
Thanks for the quick response. I'm puzzled too because I've never had anything to do with Jamovi until today, and I did indeed only just install jmvtools this morning. The jamovi module the tutorial tells you to download is here https://github.com/jamovi/jmvbaseR/archive/master.zip which does not contain the a.yaml file you mention, which is perhaps the problem? I was able to get this jmvbaseR module to install in jamovi once I had fixed all the *.a.yaml files to change the jas from 1.0 to 1.2. It seems like maybe you and the tutorial are thinking of different modules here? Anyway thanks, I'm on to the next tutorial step.

Re: Failure to install new module when following module tuto

Posted: Wed Jul 04, 2018 10:47 pm
by jonathon
ah! yes you're right. i need to update jmvbaseR.

thanks for letting me know.

cheers

jonathon