[R] Import R-output into Java
maximilianwoerle at hotmail.com
Thu Mar 19 16:13:46 CET 2009
I want to import R-output via Rserve to Java, especially for the function
ctree from the package party.
Rserve is working properly.
Yet, I only get the predictions with the Java code
RConnection c = new RConnection();
c.voidEval("modell <- ctree(...)");
REXP y = c.eval("nodes(modell,1)[]$prediction");
When I try to get the whole text with
REXP z = c.eval("nodes(modell,1)[]");
I get something like
org.rosuda.REngine.REXPGenericVector at 119c082+named
But I want the text which is printed in R.
What can I do?
It`s clear to get the result in R but I don`t know hoe to get the R-output
into Java (or into a file, i.e. .txt)
View this message in context: http://www.nabble.com/Import-R-output-into-Java-tp22601443p22601443.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help