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("x<-sqrt(-9)"); // will generate warning message
connection.eval("warnings()").asString(); // this displays null instead of 
warning message

Please reply me correct way, if any, to display warning message.

Regards,
Nikhil Shah
        [[alternative HTML version deleted]]

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to