Re: [Rd] Catching warning and error output

2005-10-11 Thread Thomas Friedrichsmeier
> since nobody has pointed me to an existing solution so far, here is a more > specific suggestion. Attached you will find two patches against R version > 2.2.0. Sorry, seems the attachments were stripped (at least they don't show up in the archive). Here are links to the two diffs in question:

Re: [Rd] Catching warning and error output

2005-10-11 Thread Thomas Friedrichsmeier
Dear R developers, since nobody has pointed me to an existing solution so far, here is a more specific suggestion. Attached you will find two patches against R version 2.2.0. The first patch does two things: 1) Add a function R_WriteErrConsole similar to R_WriteConsole, and a corresponding ptr

Re: [Rd] Catching warning and error output

2005-10-10 Thread Thomas Friedrichsmeier
> What I would like to have: > Of course there would be many different ways to accomplish this. Here are > some solutions I can think of: I just had an additional idea: 4) Export inError, and inWarning from errors.c: I'm not entirely sure this would really work as expected, but if it did, it woul

[Rd] Catching warning and error output

2005-10-10 Thread Thomas Friedrichsmeier
Hi all, I'm working on a GUI frontend for R, and I'm looking for a good way to catch all warning- and error-output. The reason for this is mostly, that I would like to know, which sections of the output are "normal" output, warnings, and errors. This would allow for some nice features, such as