Is rjava the only way to connect R to Java? I am asking because there is a disclaimer at the end of the web page:
This interface uses Java reflection API to find the correct method so it is much slower and may not be right (works for simple examples but may not for more complex ones). For now its use is discouraged in programs as it may change in the future.
This is slightly concerning. How do you address this issue? I know that Rweka has a self-contained interface, so I may look into that package, but maybe many R users have already gone through the pains.
rJava provides a low-level bridge between R and Java (via JNI). It allows to create objects, call methods and access fields of Java objects from R. JRI is a Java/R Interface providing a Java API to R functionality.
The rJava package gives access to low-level R functions to the Java interface, but it is not provided with TIBCO Enterprise Runtime for R. These instructions help you prepare your computer to use rJava.
It is not the only one as the Omegahat project also has the RSJava package. But as many of the other brilliant innovations from Omegahat (which practically speaking is really just Duncan Temple Lang), this one may not build as easily or reliably.
The rJava package on the other hand is used by almost thirty other packages
CADStat, Containers, Deducer, JGR, RFreak, RImageJ, RJDBC, RLadyBug, aCGH.Spline, ant, arulesNBMiner, colbycol, cshapes, dynGraph, farmR, gWidgetsrJava, glmulti, helloJavaWorld, iplots, rSymPy, rcdk, rcdklibs, scagnostics, spcosa, RKEA, RWeka, Snowball, openNLP, wordnet
which I take as quite the endorsement.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With