Displaying 1 result from an estimated 1 matches for "r_writewarning".
2005 Oct 10
2
Catching warning and error output
...effectively, I'd once again be back at 3a.
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:
1) In my programmers' dream, there'd simply be three callbacks that I can
override: R_WriteConsole (exists), R_WriteWarning, and R_WriteError.
R_WriteWarning, and R_WriteError would be called from vwarningcall_dflt, and
verrorcall_dflt, respectively, instead of REprintf. The default
implementation of those, would of course simply call REprintf. Drawbacks:
a) REprintf is available for use in R_ext/Print.h. I'd mi...