search for: rsrvexception

Displaying 4 results from an estimated 4 matches for "rsrvexception".

Did you mean: rserveexception
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
...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(); } } } private static Rconnection getLocalRconnection() { try { return new Rconnection(); } catch (RSrvException e) { //If we get this kind of error, it may be because Rserve is not running...
2005 Aug 22
1
Fetching Warning Messages
Hi, I am facing one problem of fetching R warning messages in Java Code using Rserve. It is easier to trap R Error messages by using catching RSrvException. I came to know one way of fetching R Warning messages, i.e. using "withCallingHandlers", below is my Java Program, which uses withCallingHandlers of R : import org.rosuda.JRclient.*; ---------------------------RWarning.java----------------------- class RWarning { public static void m...
2005 Aug 12
1
Handling warning messages
Hi, I have query regarding R & Rserve. In Rserve, there is a way to capture Errors by RSrvException class, but is there any way to capture warning messages? I have found that there is "warnings()" command in R, which lists the last warning message, but I am not able to get the warning message in java program by executing the following line: REXP rx = null; rx = connection.eval(&quo...
2006 Sep 05
1
Reserve and biobase
...System.out.println(" load library tools"); c.eval(" postscript('foo2.ps')"); c.eval(" library(Biobase)"); c.eval("graphics.off()"); System.out.println(" load library Biobase"); } catch (RSrvException ex1) { System.out.println(ex1.getMessage()); } } catch (Exception e) { System.out.print("cannot run rserve"); } //end of testing } } --------------------------------- [[alternative HTML version deleted]]