unable to install dependencies

Everything related to the development of modules in jamovi
Post Reply
JavierMG
Posts: 13
Joined: Mon Feb 24, 2025 11:30 am

unable to install dependencies

Post by JavierMG »

Hi,

I'm trying to install the package "MLwrap" for a jamovi module but I'm getting the following error with jmvtools::install():

Warning message:
package ‘MLwrap’ is not available for this version of R

If I install the package manually from CRAN and adding the folder to the /build folder it does work. Does jamovi access the latests cran release? Thank you in advance.

cheers,

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

Re: unable to install dependencies

Post by jonathon »

jamovi installs dependencies using a snapshot ... for example, the 2.7 series use a 2025-05-25 snapshot, so whatever versions of packages were current on CRAN on that date, are the versions which are used. this insulates us from breaking changes in R packages.

we bring the snapshot forward when we introduce a new series, i.e. 2.8 ... (and it's then that we deal with any breaking changes).

looking at the archives of MLwrap, it looks as though it was first published 2025-07-22

https://cran.r-project.org/src/contrib/Archive/MLwrap/

so it doesn't exist in the 2025-05-25 snapshot.

a solution here is to add MLwrap to remotes in your DESCRIPTION file

i.e.

Code: Select all

Imports:
    jmvcore, 
    ...
Remotes: AlbertSesePsy/MLwrap#54e1be3427cf4256468fc3a74ab73af8f9f0bdf4
that will install it from https://github.com/AlbertSesePsy/MLwrap

(the hash is the git commit ID you want to use)

cheers

jonathon
Post Reply