[Rd] Handling warning messages

From: Nikhil Shah <n.shah_at_decisioncraft.com>
Date: Fri 12 Aug 2005 - 10:30:34 GMT


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



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Aug 12 20:29:24 2005

This archive was generated by hypermail 2.1.8 : Mon 20 Feb 2006 - 03:21:16 GMT