Subscribe to DSC Newsletter

Tips on Installing RapidMiner’s R extension on a Windows Machine

Although I use both R and RapidMiner in my work, I have been “late to the party” in installing RapidMiner’s R extension on my Windows machine. The primary reason being that over time I have built a regular workflow that uses these two tools separately. Also, I am one of those folks who don’t go looking for trouble. After reading several postings on how after installing the extension users couldn’t get RapidMiner started again, I figured I should let this integration fad pass or at least wait for Rapid-I to address the issue.


Well, curiosity took the best of me and I installed it. Actually, I believe I jerry-rigged it, but if you are one of those folks who are wishing to get the R extension working and you haven’t had any luck yet – here are your rude, crude but quick tips to get it working.


It is worth noting that I use a 64bit box running Windows 7. I have the latest-and-greatest R installed (at least at the time of this posting, v2.13.0).


Follow the instructions given by Rapid-I, but also note the following:


TIP ONE: SET YOUR R_HOME variable to the R “root” directory, NOT to the bin directory.

On my machine it is C:\Program Files\R\2.13.0

TIP TWO: SET YOUR JAVA HOME variable to the jre ASSOCIATED WITH RAPID MINER. Don’t know why this is important, but I couldn’t get the extension running using the jre installed in C:\Program Files\Java. Just saying……just do it.

On my machine that is C:\Program Files\Raid-I\RapidMiner5\jre

TIP THREE: (OK – Here is the crude, Mickey Mouse, Fisher-Price, fix to get this thing working…) COPY ALL THE FILES IN

C:\Program Files\R\2.13.0\bin\x64


C:\Program Files\R\2.13.0


Yep, sounds pretty silly, but hey – I am running the extension, thank you. I think it has something to do with not having a LD_LIBRARY_PATH variable, like on UNIX setups. If this was the case, I think adding C:\Program Files\R\2.13.0\bin\x64 to LD_LIBRARY_PATH would have fixed this. One thing I didn’t try is adding both
C:\Program Files\R\2.13.0\bin\x64 AND C:\Program Files\R\2.13.0 to the PATH environmental variable – I am told that works too.


Best of luck, and let me know how it worked for you!



Views: 2613

Tags: R Extension, Rapid Miner, Windows


You need to be a member of AnalyticBridge to add comments!

Join AnalyticBridge

Comment by Michael Landis on December 21, 2012 at 10:37am

Russ, You don't need to copy a raft of files into the bin\x64 directory.  The only things you need to do that the R extension installation instructions don't get right (or make clear) are:

1) R_HOME wants to be R's home directory, e.g. D:\Programs\R\R-2.15.2 (not the D:\Programs\R\R-2.15.2\bin\<arch> stated in the instructions), exactly as you stated above (thanks for that).

2) The instructions also hint that you might be getting the wrong jri.dll, but the error message is clear if you fall into this trap.  The thing that's not obvious is that R's default installation of rJava puts a 32-bit version of jri.dll at (on my machine) D:\Programs\R\R-2.15.2\library\rJava\jri\jri.dll  If you're trying to run a 64-bit installation, you need to delete that file (there's another copy of it in the i386 subdirectory) and copy the jri.dll from the x64 subdirectory into the enclosing jri directory.

Those are the ONLY places where the installation instructions are off the mark (for a 64-bit install) of the R-extension.

-Mike Landis

On Data Science Central

© 2020 is a subsidiary and dedicated channel of Data Science Central LLC   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service