Re: [Rd] Fetching Warning Messages

2005-08-23 Thread Henrik Bengtsson
Did you get my reply to you on Aug 13 on withCallingHandlers()? https://stat.ethz.ch/pipermail/r-devel/2005-August/034189.html /Henrik Nikhil Shah wrote: > Hi, > > I read the help page and saw that warnings() actually prints the warning > message and stores warning in top-level variable

Re: [Rd] Fetching Warning Messages

2005-08-22 Thread Nikhil Shah
Hi, I read the help page and saw that warnings() actually prints the warning message and stores warning in top-level variable "last.warning". So it seems that it is almost impossible to access last warning from java code. I got another solution of fetching warning messages by storing warning m

Re: [Rd] Fetching Warning Messages

2005-08-22 Thread Prof Brian Ripley
Please read the help page on options("warn") and see what warnings() does. (I am pretty sure you have asked this and been told before.) There should not be an object called last.warning in your example. On Mon, 22 Aug 2005, Nikhil Shah wrote: > Hi, > >I am facing one problem of fetching R w

[Rd] Fetching Warning Messages

2005-08-22 Thread Nikhil Shah
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 withCalling