Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an R implementation for Java or .NET?

Tags:

java

.net

r

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.

like image 726
tk. Avatar asked Feb 19 '10 13:02

tk.


2 Answers

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

like image 60
Shane Avatar answered Oct 14 '22 12:10

Shane


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

like image 14
Alex Avatar answered Oct 14 '22 11:10

Alex