ROutputHandler handler = new ROutputHandler(rServe.getInputStream(),
BEGIN_MAGIC, END_MAGIC);
handler.start();
RConnection rconn = new RConnection("127.0.0.1", port);
rconn.login("beaker", password);
int pid = rconn.eval("Sys.getpid()").asInteger();
return new RServer(rconn, handler, errorGobbler, port, password, pid);
}
// set the port used for communication with the Core server