[Rd] R and Java ? [forwarded]
Thomas Lumley
thomas@biostat.washington.edu
Wed, 10 May 2000 08:27:39 -0700 (PDT)
On Wed, 10 May 2000, Martin Maechler wrote:
> This is of broader interest,
> and I'm not the expert..
>
> ------- start of forwarded message -------
> From: Cheryl J Fernandes <cferna3@uic.edu>
> To: maechler@stat.math.ethz.ch
> Subject: Re R and Java
> Date: Tue, 9 May 2000 13:54:35 -0500 (CDT)
>
>
> Hi Martin,
> I'm Cheryl Fernandes currently pursuing my Masters Of Computer Science
> at the university of Illinois, at Chicago.
>
> I have tried and tried but just cannot manage to find teh solutuon to teh
> following problem.
>
> My question is: Can R be interfaced with Java. ??
>
> My dilemma: I'm trying to run the RGui program in WintNT from a Java
> application. i;m using runtime.exec()
> It opens teh program but after that nothing happens. After opening teh
> program i'm passing some commands to R via java's process
> OutputStreamWriter. But it does NOT respond to any of teh commands not
> even by giving an exception.
>
> Coudl u please let me know if i can pass commandline commands to RGui from
> within Java or are there special API's that are available. I know for a
> fact taht Java does NOT have API's for R. It does have special interface
> API for major programs
> like C. Excel, MS-Word
>
You could probably use the COM interface to R, which is available from
CRAN under 'non-standard extensions'. It's still under development but it
does some things. I believe there is a set of classes for calling COM
from Java under Windows.
-thomas
Thomas Lumley
Assistant Professor, Biostatistics
University of Washington, Seattle
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._