You can get an REngine java reference to the object (an REXP) with
REXP rexp = Deducer.eval("aov1");
For more information about working with R objects in Java check out
the java docs: http://www.rforge.net/org/docs/org/rosuda/REngine/package-summary.html
also look at the test.java class in rJava for examples.
the easiest way to get the output in java is
REXP rexp = Deducer.eval("capture.output(print(aov1))");
String[] s = rexp.asStrings();
or you can just print it to the console with:
Deducer.eval("print(aov1)");
toJava and REXPReference are generaly used for R functions. so,
alternatively you could get the print function as an REXPReference and
then pass rexp to it as a parameter.
note that I'm not by a real computer right now so I can't give working examples.
cheers,
ian
java classes are loaded from within R. You have to make an R package
with your code. See
http://www.deducer.org/pmwiki/index.php?n=Main.Development#suaptijc
"Compiling and JARing the code"
Also take a look at the DeducerPlugInExample package for a working example.
Ian