Page 1 of 1
					
				corrPart function in jmv() package
				Posted: Wed Mar 03, 2021 9:53 pm
				by SMackinnon
				I'm trying to use the corrPart() function within R using the jmv() package instead of in jamovi. So this function:
https://jamovi.readthedocs.io/no/latest ... rPart.html
However, when I load library(jmv) the function doesn't seem to exist, and doesn't come come up on help("corrPart"). Is there something missing that I need for this to work?
 
			 
			
					
				Re: corrPart function in jmv() package
				Posted: Wed Mar 03, 2021 11:24 pm
				by MAgojam
				Hi, @SMackinnon.
When you load the library (jmv) the 
corrPart() function is available, but it is not displayed in help, as if it were not there.
Take a look at the screenshot that I attach, to confirm.
			
		
				
			
 
						- Screenshot.PNG (133.53 KiB) Viewed 4912 times
 
		
		
		
			 
Cheers,
Maurizio
 
			 
			
					
				Re: corrPart function in jmv() package
				Posted: Wed Mar 03, 2021 11:38 pm
				by jonathon
				you may need to install a more up-to-date version of jmv, than is on CRAN. try the following:
remotes::install_github('jamovi/jmv')
cheers
			 
			
					
				Re: corrPart function in jmv() package
				Posted: Thu Mar 04, 2021 4:37 pm
				by SMackinnon
				Yes, that works!
For the benefit of folks who come after me, I did need to install it using R (not Rstudio) because I was initially getting an error message like:
Warning in install.packages : cannot remove prior installation of package ‘data.table’
I downloaded the newest version of R, ran the code from jonathan in R (not RStudio). Then I also had to install MASS, because of a dependency. After that, everything works!
Thank you!