Re: [Rd] Call R function from Java

From: Adam Kapelner <>
Date: Thu 13 Jul 2006 - 21:28:48 GMT

Hey guys,

It worked. All I had to do is set PATH = < R directory > in my system variables in "My Computer" and that was it!

Oh btw Simon, I couldn't find the run.bat in the JRI_0.2-4.tar.gz file. I found a "" but that is a unix bash script.

Another question:

When I'm evaluating R expressions:

rexp3=r.eval("cancer=read.table(\"CancerCellsTrainingFile.txt\",header=TRUE, sep=\",\")");


I sometimes get back form the println:

        RXP[unknown/19, id=1208787616, o=null]

Is there anyway to actually view that output as a string? I know it's not a graphical object. It's probably a type of error message.

I'm running Windows XP, 1GB RAM, 2 x 1.8GHZ Xeon P4's, Eclipse 3.1.1, jdk1.5.0_07, and jre1.5.0_06


-----Original Message-----
From: Simon Urbanek [] Sent: Thursday, July 13, 2006 11:17 AM
To: way4thesub
Subject: Re: [Rd] Call R function from Java


On Jul 12, 2006, at 10:42 PM, way4thesub wrote:

> I am unsure how to actually import JRI into eclipse.

I don't know either, but I'd recommend using the run.bat start script supplied with JRI. I bet Brian's guess is correct.

> I'm sorry this is such an easy question but with the lack of FAQ's
> and examples of JRI, I'm forced to ask it.

There are examples in JRI (in the "examples" directory) and JGR is probably the best example of the general use of JRI. At your suggestion I have now added a FAQ.

Simon mailing list Received on Fri Jul 14 07:31:37 2006

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 Fri 14 Jul 2006 - 02:24:36 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.