Page 1 of 1

How to reference to a local library on HDD for a module

Posted: Thu Jan 30, 2025 5:33 am
by jojop2
I have a local library in zip format, which is neither on CRAN nor on github.
Is there a way to access functions from this library in a custom module?

I tried several things in DESCRIPTION and NAMESPACE and init.R files without any success.
I can't convince the jamovi compiler to add my library to the module files.

Re: How to reference to a local library on HDD for a module

Posted: Fri Jan 31, 2025 6:05 am
by jonathon
take a look in folder tree of your project... you'll find a folder called something like jamovi/build/R4.4.1-win64. inside there you'll find all the R packages that your module is using. what you could do is install the local library into a matching version of R, and then copy it from, say

C:\Users\YourUsername\Documents\R\win-library\4.4.1

to

YourModule/jamovi/build/R4.4.1-win64

of course, this isn't really kosher :P

jonathon