See: Description
Package | Description |
---|---|
io.onetapbeyond.renjin.r.executor |
A Java library providing a lightweight solution (~16 kB jar) for integrating R analytics executed on the Renjin interpreter into any application running on the JVM. 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:
RenjinTask
, no boilerplate javax.script
code required.
RenjinTask
concurrency and throughput.
RenjinTask
and RenjinResult
serialization.
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 rData = rResult.data();
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 rData = rResult.data();