tags:

views:

303

answers:

3

Is there java or .net version of R ? (like jython / ironpython for 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.

+1  A: 

I don't think there is an R implementation for the JVM or .NET yet. I wonder if RPy could be used as a bridge, though. You might try using it with Jython or IronPython to find out.

Bill the Lizard
thank you bill.
tk
+9  A: 

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).

Shane
thank you shane
tk
+3  A: 

If you needs stats on the pure JVM, you might try Incanter (www.incanter.org). It's an R-like library for Clojure, which brings lispy functional programming to the JVM. It looks like a really cool start-up with some potential. They have a pretty active user community already on their google group.

Ian Fiske