Page 1 of 1

Generated R Code not working

Posted: Fri May 31, 2019 12:14 am
by Whirly123
I am trying to have my analysis nice and neat in an r file but not all the code is working.

Specifically for my bayesian Anova. The code generated looks like this:
jsq::banova(
data = data,
etc

The issue being that jsq is not a package I have or can install. Of course, I would assume this is because it's not native to Jamovi but is a separate module. Does this mean the r code is of no use yet?

I am using a couple of other modules for analysis that I would assume also don't work (ie a generalised linear mixed model)

I am pretty new to this so if I am missing something let know.

Otherwise, if it's not currently a feature I can just stick to 2 separate Jamovi files (one for long format and one for wide) and a separate R script for the stuff I can't do yet in Jamovi (Bayes mixed model regression) which is a bit messy.

Re: Generated R Code not working

Posted: Fri May 31, 2019 2:03 am
by jonathon
hi whirly,

yes, there's currently some issues with releasing jsq as an R package, so you're right, the syntax for it isn't useful at present. (i thought i'd replaced the syntax with a helpful message, but apparently not).

syntax for other modules should work however, but the module may not be available from CRAN.

to install the GAMLj module for example, you can use devtools.

devtools::install('gamlj/gamlj')

then you should be able to use the GAMLj R syntax.

cheers

jonathon

Re: Generated R Code not working

Posted: Sun Jun 02, 2019 11:57 am
by MAgojam
jonathon wrote: to install the GAMLj module for example, you can use devtools.

devtools::install('gamlj/gamlj')
Now you find it here:

Code: Select all

devtools::install_github(
                    repo = "mcfanda/gamlj",                        
                    dependencies = TRUE,  
                    upgrade_dependencies = TRUE
)
packageVersion("gamlj")
Cheers,
Maurizio

Re: Generated R Code not working

Posted: Tue Jun 04, 2019 10:44 am
by jonathon
oh yup, ignore me, maurizio is right.

cheers