"[SOLVED] Rapidminer R extension [Fatal Error] Content is not allowed in prolog."
When trying to install the rapidminer R extension, I got a cryptic error like" Content is not allowed in prolog". By googling around, I found this cryptic error might be caused by the XML reader barfing on a non-existent file, which in rapidminer's case is being looked for by user fragment documentation, whatever that is? There are two warnings that pop up relative to this, and in some cases (I'm guessing it depends on your Java version?) causes the cryptic: [Fatal Error] Content is not allowed in prolog.
I was able to FIX this error by going into Rapidminer-->Tools-->Preferences-->R
the first field should be your library, /Library/Frameworks/R.framework/Versions/2.15/Resources/library/rJava/jri/libjri.jnilib
and I just copied in anything to the next two fields, so the XML parser wouldn't throw an uncaught exception. So I just copied the exact same path from above (the one for the dll) into those two fields. Of course it throws warnings because it isn't expecting the dll but it continues on with just a warning and the R extension works correctly!!!
I spent FOREVER messing with my PATH and R_HOME and JAVA_HOME thinking I was doing something wrong. Maybe if my PATHs are set correctly then rapidminer would know where to find what its looking for, because I did actually manage to get the R extension working on my computer at some point in the past without using this funny work around. Maybe there a command line option that can suppress that error and turn it into a warning?
There were three things that weren't explained well in the installation documentation for MacOSX users.
1) when it asks for the dll, give it the dll listed above, I think if you pick one of other ones it also messes up, such as REngine or RLib
2) I didn't know where to change the DLL once it was set during the installation script, since it automatically rediscovers the one you set previously even if it is wrong.
3) Whats up with the user fragment documentation warnings and in my case ERRORS, and should we be setting this manually if it doesn't get set automatically?
Best regards,
Robert