From n.shah at decisioncraft.com  Fri Aug 12 12:30:34 2005
From: n.shah at decisioncraft.com (Nikhil Shah)
Date: Fri, 12 Aug 2005 16:00:34 +0530
Subject: [Rd] Handling warning messages
Message-ID: <004801c59f28$e1147650$7900a8c0@dca.com>

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



[Rd] Handling warning messages
Nikhil Shah