package ‘jmvtools’ is not available (for R version 3.6.3)

Everything related to the development of modules in jamovi

by LZAN » Sun Jun 21, 2020 6:28 am

Dear all,

I have used jamovi for one year and it is an excellent data analysis tool. I am trying to add a module but it had something wrong when I installed 'jmvtools' in my system R.

The warning message is "package ‘jmvtools’ is not available (for R version 3.6.3)". Is there a solution for this?

Thank you very much.
LZAN
 
Posts: 5
Joined: Sun Jun 21, 2020 6:07 am

by jonathon » Sun Jun 21, 2020 6:34 am

hey,

this command doesn't work?

install.packages('jmvtools', repos=c('https://repo.jamovi.org', 'https://cran.r-project.org'))

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

kind regards

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

by LZAN » Sun Jun 21, 2020 6:41 am

Thanks for your reply but it still dosen't work.

There is the warning message:

install.packages('jmvtools', repos=c('https://repo.jamovi.org', 'https://cran.r-project.org'))
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/surface/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
Warning in install.packages :
unable to access index for repository https://repo.jamovi.org/src/contrib:
cannot open URL 'https://repo.jamovi.org/src/contrib/PACKAGES'
Warning in install.packages :
package ‘jmvtools’ is not available (for R version 3.6.3)
Warning in install.packages :
unable to access index for repository https://repo.jamovi.org/bin/windows/contrib/3.6:
cannot open URL 'https://repo.jamovi.org/bin/windows/contrib/3.6/PACKAGES'
LZAN
 
Posts: 5
Joined: Sun Jun 21, 2020 6:07 am

by jonathon » Sun Jun 21, 2020 6:45 am

so this is the problem:

unable to access index for repository https://repo.jamovi.org/src/contrib:
cannot open URL 'https://repo.jamovi.org/src/contrib/PACKAGES'

which suggests there's an issue with your internet connection. try pasting the url into your web browser, and see if it can access it: https://repo.jamovi.org/src/contrib/PACKAGES

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

by LZAN » Sun Jun 21, 2020 6:48 am

==============================================
Package: jmvtools
Version: 1.3.3
Imports: node, jmvcore (>= 1.0.0)
MD5sum: d6c52ea7884d38cc42c867b972ec60dc
NeedsCompilation: no

Package: node
Version: 1.0
MD5sum: 6a54702efa2ab895f129220cde8670da
NeedsCompilation: no
==============================================

Is this the right response?
LZAN
 
Posts: 5
Joined: Sun Jun 21, 2020 6:07 am

by jonathon » Sun Jun 21, 2020 6:53 am

yeah, perfect. i wonder why R can't find it. are you behind a proxy or similar?

we can spend time figuring out what's up with your computer/network, but it might be easier to just download jmvtools from here:

https://repo.jamovi.org/src/contrib/

and install them manually.

cheers

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

by LZAN » Sun Jun 21, 2020 7:16 am

Do you mean vpn or something other? I did not use a vpn tool.

I download the 'jmvtools_1.3.3.tar.gz' and install them manually but there is an error like this:

#########################
install.packages("C:/Users/surface/Downloads/jmvtools_1.3.3.tar.gz", repos = NULL, type = "source")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/surface/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
ERROR: dependency 'node' is not available for package 'jmvtools'
* removing 'C:/Users/surface/Documents/R/win-library/3.6/jmvtools'
Warning in install.packages :
installation of package ‘C:/Users/surface/Downloads/jmvtools_1.3.2.tar.gz’ had non-zero exit status
#########################

I also tried the version 1.3.2 and there is no difference.
I'm afraid I have taken up too much of your time and thank you very much.
LZAN
 
Posts: 5
Joined: Sun Jun 21, 2020 6:07 am

by jonathon » Sun Jun 21, 2020 7:18 am

you need to download and install node from here too:

https://repo.jamovi.org/src/contrib/

install node first, *then* the install of jmvtools will work.

cheers

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

by LZAN » Sun Jun 21, 2020 8:04 am

It works!!

Thank you for your patient guidance!

I will learn to install a module following the tutorial.
LZAN
 
Posts: 5
Joined: Sun Jun 21, 2020 6:07 am


Return to Module development