Skip navigation links

renjin-r-executor

A Java library providing a lightweight solution (~12 kB jar) for integrating R analytics executed on the Renjin interpreter into any application running on the JVM.

See: Description

Packages 
Package Description
io.onetapbeyond.renjin.r.executor  

A Java library providing a lightweight solution (~12 kB jar) for integrating R analytics executed on the Renjin interpreter into any application running on the JVM. This library is ideally suited for integrating R analytics into new or existing server, middleware and cluster computing solutions.

The Renjin interpreter provides a JVM-native execution environment for scientific computing, reproducible research and data analysis based on R. To learn more about the Renjin interpreter, see here. To learn more about the general capabilities of the R programming language and environment for statistical computing, see here.


This library provides the following Renjin integration support:


When working with this library the basic usage pattern is as follows:

 
RenjinTask rTask = Renjin.R().code(rCode).input(rInput).build();
RenjinResult rResult = rTask.execute();
org.renjin.sexp.SEXP rOutput = rResult.output();


For example, the following code snippet demonstrates the execution of the R stats::rnorm function:

 
RenjinTask rTask = Renjin.R().code("rnorm(n,mean)").input("n", 10).input("mean", 5).build();
RenjinResult rResult = rTask.execute();
org.renjin.sexp.SEXP rOutput = rResult.output();


Skip navigation links