Generated R Code not working

Discuss the jamovi platform, possible improvements, etc.

by Whirly123 » Fri May 31, 2019 12:14 am

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.
Whirly123
 
Posts: 8
Joined: Mon May 06, 2019 3:07 pm

by jonathon » Fri May 31, 2019 2:03 am

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

by MAgojam » Sun Jun 02, 2019 11:57 am

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

by jonathon » Tue Jun 04, 2019 10:44 am

oh yup, ignore me, maurizio is right.

cheers
User avatar
jonathon
 
Posts: 871
Joined: Fri Jan 27, 2017 10:04 am


Return to General

cron