Extend my Java application with R?

java, jvm, plugins, r, scripting

Solution

You can use JRI. From that website:

JRI is a Java/R Interface, which allows to run R inside Java applications as a single thread. Basically it loads R dynamic library into Java and provides a Java API to R functionality. It supports both simple calls to R functions and a full running REPL.

This is part of the rJava project (which allows calling of Java from R)

Problem

I am building an application that I want to have extended with modules that does some nr crunching and I would like to have R for that. What are my best options for extending my Java application with R?

Original source