Configuring R in Linux Environment
Follow steps below to configure R.
Install R. For more information see The R Project for Statistical Computing.
This guide uses R version 3.2.2.
- You can verify whether the R installation is successful by typing command "R" in a new terminal. Upon successful installation you will get a log as shown below.
- Install JRI. For more information see Java/R Interface Documentation.
Set path accordingly for $R_HOME and $JRI_HOME
Eg: $R_HOME=/usr/lib/R $JRI_HOME=<Root folder>/R/x86_64-pc-linux-gnu-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
Eg: ln -s /home/ubuntu/R/x86_64-pc-linux-gnu-library/3.2/rJava/jri/libjri.so /usr/lib