Configuring R in Linux Environment
...
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.
- 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. 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
Set path accordingly for $R_HOME and $JRI_HOME
Code Block Eg: $R_HOME=/usr/lib/R $JRI_HOME=<Root folder>/usr/lib/R/x86_64-pc-linux-gnusite-library/3.2/rJava/jri
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 /homeusr/ubuntulib/R/x86_64-pc-linux-gnu-library/3.2site-library/rJava/jri/libjri.so /usr/lib
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