Displaying 1 result from an estimated 1 matches for "getlocalrconnection".
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
...Now im trying to establish a connection by using Rserve and JRclient (RF503).
I have the following code, which i`ve found:
------------------------------------------------------------------------
public class RTester {
public static void main(String[] args) {
Rconnection c = getLocalRconnection();
if (c != null) {
try {
double[] d = c.eval("rnorm(10)").asDoubleArray();
for (double n : d)
System.out.println(n);
} catch (RSrvException e) {
e.printStackTrace();
}...