Obsoleted - Directions To Install R Project
Install R Project (optional, for statistics)
Optional: If you want your system to compute advanced statistics about your project, you'll need to install the R Project.
- Install R and JGR. Read how to install on Ubuntu.
Set up JRI: This step does not always need to be done -- on some systems (currently on Linux 64 bit and on Windows) it may be done automatically for you. If it is not and you recieve an error message saying JRI's not installed...
- Install rJava & JRI from source or binaries.(Don't install through R's command line prompt -- it will get you a version that's too old). You'll need rJava version 0.8-0 (or any version that has JRI version 0.5-1 -- the JRI versions are not the same as the rJava versions).
- If you downloaded a source package (any unix system will be from source) build JRI.
- Look up the installation path that JRI went into. (TODO Can we improve these directions?)
- In Eclipse, go to "Run" -> "Run Configurations" -> choose your server.
- In the "Environment" tab, you'll have to set the "R_HOME" environment variable before tomcat launches.
- In the "Arguments" tab, add to the "VM Arguments" the following, for example: -Djava.library.path=/path/to/jri/installation
Alternative directions:
Optional: If you want your system to compute advanced statistics about your project, you'll need to install the R Project.
-
- Install R and JGR:
- On Ubuntu, read how to install on Ubuntu-- in these directions, you can probably ignore the first few directions and skip straight to "apt get ..."
- Edit your tomcat launch file. You'll have to set the "R_HOME" environment variable to where your R home directory is:
- In Linux:
- Find your R_HOME location -- probably something like /usr/lib/R or /usr/lib64/R.
- Edit catalina.sh and add this after the first line: "export R_HOME=/path/to/your/R/installation"
- In Linux:
Set up JRI: This step does not always need to be done -- on some systems (currently on Linux 64 bit and on Windows) it may be done automatically for you. If it is not and you recieve an error message saying JRI's not installed...
- Install rJava & JRI from source or binaries.(Don't install through R's command line prompt -- it will get you a version that's too old). You'll need rJava version 0.8-0 (or any version that has JRI version 0.5-1 -- the JRI versions are not the same as the rJava versions).
- If you downloaded a source package (any unix system will be from source) build JRI.
- Look up the installation path that JRI went into. (TODO Can we improve these directions?)
- Edit your tomcat launch file.
- In Linux, edit apache tomcat/bin/catalina.sh and add to your JAVA_OPTS line at the end before the quote: -Djava.library.path=/path/to/jri/installation
- Install R and JGR: