Skip to content
Prev 17727 / 63424 Next

warning.expression?

I'm sending this reply to r-devel instead of r-help, since it has moved 
into talking about changes to R internals now.
On 9/23/2005 7:36 AM, Barry Rowlingson wrote:
That's old code (mostly from 1999/2000), and that method of handling 
warnings is not used in any of the base code, which may explain why it 
isn't all that useful.  I don't know of any GUIs that do what Thomas is 
attempting (which I think is to have his GUI divert warnings and errors 
from the output stream to some other display), so there might not 
currently be a good way to do what he wants other than pattern matching 
on the output.

It would probably be a good idea to deprecate warning.expression in the 
next release, rather than beefing it up.  If we don't have a good method 
to do what Thomas wants, we should add it, but warning.expression 
doesn't look like the right way to do it.

Does anyone know of any uses of it in current code on CRAN, 
Bioconductor, or elsewhere?

Duncan Murdoch