...
...
Configuring R in
...
Standalone Environment
Follow steps below to configure R.
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.
- You can verify whether Issue the
R
installation is successful by typing command "R" in command from a new terminal . Upon successful installation you will get a log as shown belowto 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-gnusite-library/3.2/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