Monday, August 22, 2011

Rapid Miner and R extension problem on Mac solved

Suppose you are using R 2.12

Enter the following in either /etc/profile or ~/.bash_profile

export R_HOME

In the /Library/Frameworks/R.framework/Versions/2.12/Resources/library/rJava/jri/ folder, do the following:
1) Rename the JRI.jar to JRI.jar.original
2) make a copy of the libjri.jnilib and rename this copy to JRI.jar
This is because, by default it looks for JRI.jar

Once rapidminer is started, in the R preferences, change the rapid.miner.r.native lib file back to /Library/Frameworks/R.framework/Versions/2.12/Resources/library/rJava/jri/libjri.jnilib

Delete the JRI.jar (copied from libjri.jnilib)
Rename back JRI.jar.original to JRI.jar.

No comments: