About
R-Java library
Articles Related
Renjin
Renjin is a java script engine.
// Add Renjin as a dependency to pom.xml or build.gradle
RenjinScriptEngine engine = new RenjinScriptEngine();
// Evaluate R inline
engine.eval("df <- data.frame(x = 1:10, y = rnorm(n = 10))");
engine.eval("print(lm(y ~ x, df))");
// Use CRAN and BioConductor packages
engine.eval("ggplot2::qplot(x, y, data = df)")
// Evaluate external R script
engine.eval(new java.io.FileReader("script.R"));
rJava
Rjava by Simon Urbanek
rJava components:
- JRI –