Is there Java or .NET version of R? (like Jython / IronPython for the Python language)
I guess some R-packages which use C or Fortran may not run on Java/.NET version of R, but as long as pure R code can be run, it must be great.
As mentioned in the other answer, there is now a pure Java implementation of R: http://code.google.com/p/renjin. Exciting development, and looking forward to see how it evolves.
Former answer below:
Bill is correct: there is no pure implementation of the R langauge (or the S langauge) on either the JVM or CLR, so the best that you can do is to use some kind of interface through C.
JRI allows you to call R from any Java program, so any language on the JVM should be able to call the JRI jars. See my example of how to use this in this question: R from within Java. As an example, there is a clojure library that is currently being developed around JRI by Joel Boehland: Rincanter (read about it here).
Renjin is a pure-JVM implementation of the R language. It's very much under development and not production ready, but making good progress.
http://code.google.com/p/renjin
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