Generated R Code not working

Discuss the jamovi platform, possible improvements, etc.
Post Reply
Whirly123
Posts: 31
Joined: Mon May 06, 2019 3:07 pm

Generated R Code not working

Post 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.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Generated R Code not working

Post 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
User avatar
MAgojam
Posts: 421
Joined: Thu Jun 08, 2017 2:33 pm
Location: Parma (Italy)

Re: Generated R Code not working

Post 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
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Generated R Code not working

Post by jonathon »

oh yup, ignore me, maurizio is right.

cheers
Post Reply