R and RJava - scottlove/MessageProducer GitHub Wiki
Installing and running RJAVA
-
Install R (at this time it was Rx64 3.1.0)
-
Open R and run install.packages('rJava'). (note I had to install in new directory)
-
Update environment variables
-
R-HOME = C:\Program Files\R\R-3.1.0\ (also add R_HOME)
-
add to PATH C:\Program Files\R\R-3.1.0\bin\x64;c:\Users\scotlov\Documents\R\win-library\3.1\rJava\jri
-
Copy 64 bit version of jri.dll to jri directory
-
Add JRI.jar JRIEngin.jar, and REngine.Jar to intellij project
Installing R and RJAVA on Ubuntu Edit /etc/apt/sources.list Add the following lines
-
deb http://cran.cnr.Berkeley.edu/bin/linux/ubuntu saucy main
-
deb-src http://cran.cnr.Berkeley.edu/bin/linux/ubuntu saucy main
-
remove "azure" from all lines starting wit deb
-
Sudo apt-get install r-base
-
sudo apt-get install r-cran-rjava
-
set environment variables (or add them to /etc/environment):
-
export R_HOME=/usr/lib/R/
-
export LD_LIBRARY_PATH=/usr/lib/R/site-library/rJava/jri