[R] Using JRI Calling R function from Java

From: freezemanx <freezeman06_at_gmail.com>
Date: Mon 08 Jan 2007 - 02:59:43 GMT

Hey guys.

I have Installed and running JRI from Java and it works. Using : java -cp jri.jar; MainApp.java

The problem is How do I calling R function that need R library I have tried these with my Java program :

               x =  re.eval("glm( y ~ x1 + x2, family = poisson)");
               String resultString = x.asString();
but it did'n't work, resultString variable did't give any result it's null

questions :
Is there any other way to call this R function from Java using JRI?

and I have heard omegahat package can be use to calling R function are there any links, examples , tutorials for using omegahat?


View this message in context: http://www.nabble.com/Using-JRI-Calling--R-function-from-Java-tf2937179.html#a8212021
Sent from the R help mailing list archive at Nabble.com.

R-help@stat.math.ethz.ch mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Mon Jan 08 14:05:59 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 08 Jan 2007 - 03:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.