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

PATH=$PATH:/Library/Frameworks/R.framework/Versions/2.12/Resources/bin:/Library/Frameworks/R.framework/Versions/2.12/Resources/library/rJava/jri
R_HOME=/Library/Frameworks/R.framework/Versions/2.12/Resources
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.


Wednesday, August 3, 2011

Download file from terminal MAC OSX versus Linux

On Mac, use:
curl -O ftp://abc.tar.gz &

On Linux, use:
wget ftp://abc.tar.gz &