From duncan@research.bell-labs.com  Wed Dec 20 11:48:23 2000
From: duncan@research.bell-labs.com (Duncan Temple Lang)
Date: Wed, 20 Dec 2000 06:48:23 -0500 (EST)
Subject: [Rd] Example of calling R from Java
Message-ID: <200012201148.GAA25303@jessie.research.bell-labs.com>


> From: "Moshe Recanati" <moshe@i-impact.com>
> Date: Sun, 17 Dec 2000 10:12:25 +0200
> 
> Hello,
> 
> I downloaded the R for Java interface. I read about calling R =
> scripts/methods from java, but I can't find any detailed example about =
> this.
> 
> I need an example of how to use this.
> 
> For example how to load data object (i.e. of colt) to r , run anova =
> function and get the results - all from java!!!
> 
> Thank you very very much
> Regards,
> Moshe
> i-impact
> 


There is a new version of both the Java package (now 0.61) and the
RFromJava document (http://www.omegahat.org/RSJava/RFromJava.pdf)
which gives an example (with the code and a script to run it) of
fitting a linear model in R from Java and getting the resulting lm
object back to Java.

As I have mentioned before, you have to think about what it means
to "get the results" in the context of your application. 

 D.

-- 
_______________________________________________________________

Duncan Temple Lang                duncan@research.bell-labs.com
Bell Labs, Lucent Technologies    office: (908)582-3217
700 Mountain Avenue, Room 2C-259  fax:    (908)582-3340
Murray Hill, NJ  07974-2070       
         http://cm.bell-labs.com/stat/duncan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Example of calling R from Java
Duncan Temple Lang