Skip to content

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

2 messages · Paul Roebuck, Brian Ripley

#
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)

----------------------------------------------------------
SIGSIG -- signature too long (core dumped)
#
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: