[R-pkg-devel] Making possible the use of external java codes by downloading it

Paul SAVARY p@u|@@@v@ry @end|ng |rom un|v-|comte@|r
Fri Jul 3 10:15:29 CEST 2020


Hello everyone,

I would like to include external java codes (.jar files) to a package in order to speed up some computations.
However, this would increase the package size above 5 Mb and this code would not be working for users without java installation. 

Instead, I could include a default parameter in the function calling another R package making the same computation but more slowly. It would be best for users without java on their computer.
Besides, I could allow users to download the external java code from a stable url, and include in the R function all the arguments to launch this java code (wrapper for the java code). When downloaded, the jar file should be copied directly into the extdata directory in the user computer if possible.

Does it seem feasible to you? 

Many thanks 
Regards
Paul



More information about the R-package-devel mailing list