[R] [Q] R equivalent for Splus get.message()

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri May 30 18:51:39 CEST 2003

Are you looking for geterrmessage()?

I think an error handler should be writing to stderr(), BTW, but normally 
the R error message will already have been written there.

On Fri, 30 May 2003, Paul Roebuck wrote:

> I'm trying to get a translation of some Splus code going.
> My problem is with the S-plus get.message() function not
> existing in R. Is there a replacement or alternative?
> ErrorHandler.func<-function()
> {
>     cat("app.terminated\n");
>     cat(paste("err.fatal",get.message(),"\n",sep=""));
>     dump.calls();
> }
> options(error=ErrorHandler.func)

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

More information about the R-help mailing list