I am running KNIME 2.9 and trying to learn about R integration.
I have R 3.0.1 installed on a MacBook Pro running OS X 10.9
From some of the more recent comments on this forum apparently the new R(Interactive) nodes are the best place to get started.
After trying to execute a "Table to R" node I got the following error message:
ERROR Table to R Execute failed: Only R in version 2.x is supported. The R installation defined in the preferences is of version 3.x.
You can fix the problem by pointing to a valid R v2 installation or by
- uninstalling the feature "org.knime.features.rengine.r2"
- modifying your R installation and adding the package "rJava" (available from CRAN)
- add a line to knime.ini: -Djava.library.path=<R-install-folder>/library/rJava/jri/x64
(path printed to console while running install.packages("rJava") in R)
and restarting KNIME.
As I have version 3.0.1 installed this is not unreasonable. So I followed the instructions and removed the above feature, added rJava to my installation, and modified the knime.ini to the appropriate directory (incidentally the executable jars are not in the "/library/rJava/jri/x64" directory but in "/library/rJava/jri" on the Mac.)
Now I do not get any error messages but as soon as I try and configure the "Table to R" node KNIME dies and the entire processes disappears.
Reinstalling the feature "org.knime.features.rengine.r2" gets me back to where I was with the above error.
I installed the latest version of R v2 and when it tries to instantiate R within the node the same crash occurs. Switching back to R v3 gives me the old error message.
I have tried changing Java versions from 1.6 to 1.7 with no difference in behavior.
Whenever the node tries to instantiate an R instance, either in v2 or v3 the whole KNIME process disappears.
If anyone is familiar with this failure or can confirm that it is unique to my environment can they please let me know.
Hopefully there are specific configuration changes or version changes that are necessary to avoid this problem.
I have asked this question in the R forum with no replies, I am hoping that it will get more viewers in the General forum.
Thanks,
Scott