Displaying 1 result from an estimated 1 matches for "jproc".
Did you mean:
proc
2000 May 10
1
R and Java ? [forwarded]
...e API's for R. It does have special interface
API for major programs
like C. Excel, MS-Word
Any help would be greatly appreciated.
The code for the above is:
Runtime rt = Runtime.getRuntime();
String strCmdTmp ="";
strCmdTmp = "Z:\\R\\rw1000\\bin\\Rgui ";
Process jproc= rt.exec(strCmdTmp);
OutputStreamWriter o = new OutputStreamWriter(jproc.getOutputStream());
o.write("a<-c(4,5)\n");
o.write("mean(a)\n");
o.write("quit(\"no\")\n");
o.flush();
String line=null;
BufferedReader reader = new BufferedR...