Le 12/05/2010 12:10, Nicolas Dumoulin a écrit :
Le mercredi 12 mai 2010 12:05:52 Jean Couteau, vous avez écrit :
Ok, it is trying to convert the result and got a NPE trying to do it. As you do not use the result from R in your code, you could replace the eval() method by the voidEval() one (that do not try to return the result from R and so do not make the conversion).
The give code is an example, but I need the object indeed ;-)
I guess that what you want is the experiment design so if you call your R object a, the a$X data.frame. What you could do is something like : engine.voidEval("a<-fast99..."); RDataframe myExperiment = (RDataframe)engine.eval("a$X");
Maybe, I can try to simplify the object in R script to help j2r magic convertor…
It is always better to get the basic types from R instead of complicated custom R objects (such as a fast99 object ;) ) In J2R, you can work with data.frames, lists, or the basic java types. Hope this helps, Jean