Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

...

Configuring R in

...

Standalone Environment

Follow steps below to configure R.

  1. Install R. For more information see The R Project for Statistical Computing. Installation instruction for each OS can be found here.

    Info

    This guide uses R version 3.2.2.

  2. Issue the R command from a new terminal to check whether the R installation is  successful. The following log is displayed if the installation is successful.
  3. Install JRI. For more information see Java/R Interface Documentation

    Info

    For Linux you can use 'apt-get install r-cran-rjava' command. This will install rJava into <R_Installation>/site-library/rJava/jri. This is the location you need to use as JRI_HOME

  4. Set path accordingly for $R_HOME and $JRI_HOME 

    Code Block
    Eg: $R_HOME=/usr/lib/R
    
        $JRI_HOME=/usr/lib/R/site-library/rJava/jri
  5. Add a symbolic link which acts as a pointer to link libjri.so file in rJava/jri/libjri.so  to the installation path of R

    Code Block
    Eg: ln -s /usr/lib/R/site-library/rJava/jri/libjri.so /usr/lib
  6. Add following jar files which are inside jri installation (/usr/lib/R/site-library/rJava/jri) to <CARBON_HOME>/repository/components/lib

    Panel
    JRIEngine.jar
    JRI.jar
    REngine.jar