A program to recognize and reward our most engaged community members
jbejar wrote:Hi If you have installed the rJava library in R, there is a jri native library inside the jri directory of the rJava R plugin. You have to select the jri library for your OS (jri.dll or libjri.so). Cheers Javier
Sebastian Land wrote:actually I thought there IS a step by step guide in the installation hints?
1. After you have installed a proper version of R, you need to open the R console to prepare R to support being accessed by RapidMiner. You have to install rJava available on CRAN by typing the following command on the console:install.packages("rJava") 2. You should now type .libPaths() and note the listed directories. One of them is used to store the rJava package and you will need to remember it when RapidMiner starts. If finished successfully, R is prepared for RapidMiner. 3. Now you have to make sure, that RapidMiner can find the program libraries of R by adding it to the PATH environment variable of your operating system: Add <R installation directory>/bin to the PATH variable on Linux systems or <R installation directory>\bin on Windows machines. This directory must contain the dynamic link library of R and all dependent libraries, which is called libR.so, R.so or R.dll depending on your operating system. 4. If you don't already have a valid JAVA_HOME variable pointing to the installation directory of your java, you need to create it. If you don't have java installed on your computer, point it to <RapidMiner installation directory>/jre. You have to make sure, that the java is of the same architecture as R and RapidMiner, either 32bit or 64bit. 5. Now you can configure RapidMiner. If you click on Next, you will be asked to enter the path to the jri library that has been installed with rJava. This is located in one of the .libpath directories noted above and more exact in <libpath directory>/rJava/jri/. The filename depends on your operating system and is jri.dll on Windows and libjri.so or jri.so on Unix. 6. If you have selected the file, RapidMiner will exit, since the new environment variables are still unknown and you need to restart the program manually. If the new R Perspective has been added after restart, everything runs just fine. If not, please check if the file is in the correct directory, is accessible by RapidMiner and if the path is set to the correct R version.
Marin wrote:http://wso2.org/project/wsas/java/1.1/docs/setting-java-home.html for setting the mentioned JAVA_HOME on XP (default entry is C:\Program Files\Java\jre6)Beneath it you should edit the field Path and enter C:\Program Files\R\R-2.11.1\bin if you used the default installation settings.Then when you start RM it will load longer and you will be able to enter the R console view (part with the Preferences -> R extension you've put in RM should be just like that if you installed R/library in default directory).@Ryu, regarding XP there is no need to add R and jri.dll to Path, just R/bin (C:\Program Files\R\R-2.11.1\bin). I don't have JDK installed which is why probably my settings were a bit different.