Re: [R] Import R-output into Java

2009-03-20 Thread Maxl18
Thanks, now it works! Max Romain Francois-2 wrote: > > Ooops, I meant this : > > con.voidEval("sink('test.txt')"); > con.voidEval("cat(1+1)"); > con.voidEval("sink()"); > > Romain Francois wrote: >> Hi, >> >> try this instead: >> >> con.voidEval("sink(test.txt)"); >> con.voidEval("cat(1+1)"

Re: [R] Import R-output into Java

2009-03-20 Thread Romain Francois
Ooops, I meant this : con.voidEval("sink('test.txt')"); con.voidEval("cat(1+1)"); con.voidEval("sink()"); Romain Francois wrote: Hi, try this instead: con.voidEval("sink(test.txt)"); con.voidEval("cat(1+1)"); con.voidEval("sink()"); Romain Maxl18 wrote: Thanks, sink was exactly the functio

Re: [R] Import R-output into Java

2009-03-20 Thread Romain Francois
Hi, try this instead: con.voidEval("sink(test.txt)"); con.voidEval("cat(1+1)"); con.voidEval("sink()"); Romain Maxl18 wrote: Thanks, sink was exactly the function I searched. It properly works in R, but when I try to launch it from Java, the file is created but never written any output... c

Re: [R] Import R-output into Java

2009-03-20 Thread Maxl18
Thanks, sink was exactly the function I searched. It properly works in R, but when I try to launch it from Java, the file is created but never written any output... con.voidEval("test.txt"); // file is created con.voidEval("1+1");// nothing is written into the file con.voidEval("sink()"

Re: [R] Import R-output into Java

2009-03-19 Thread Thomas Roth (geb. Kaliwe)
#I used sink ?sink #Thomas Maxl18 schrieb: Hello, 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 try{ RConnection c = new RConnection();

Re: [R] Import R-output into Java

2009-03-19 Thread Romain Francois
Maxl18 wrote: Hello, 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 try{ RConnection c = new RConnection(); ... c.voidEval("modell <- c