mpbravo / java-R-example

This example shows how to execute R code embedded in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java-R-example

This example shows how to execute R code embedded in Java

This example uses JRI to be able to execute R code.

References

System Requirements

  • Maven

  • Compile JRI from sources to get JRI.jar and the native library (libjri.so in Linux)

  • In this example, both the JRI.jar and the native library for Linux x64 are provided

  • Install and configure R

    sudo yum install R

    export R_HOME=/usr/lib64/R/

    sudo R

    install.packages('rJava')

    install.packages('HMisc')

    q()

Running the example

    mvn exec:exec

About

This example shows how to execute R code embedded in Java


Languages

Language:Java 100.0%