https://github.com/cran/SoDA
Revision abb11e53fd1d4cd6d80e90fa5a000adda65fe209 authored by jmc on 14 July 2008, 00:00:00 UTC, committed by Gabor Csardi on 14 July 2008, 00:00:00 UTC
1 parent 9e5b9bb
Raw File
Tip revision: abb11e53fd1d4cd6d80e90fa5a000adda65fe209 authored by jmc on 14 July 2008, 00:00:00 UTC
version 1.0-3
Tip revision: abb11e5
recoverHandler.R
recoverHandler <- function(condition) {
    string1 <- function(what) if(length(what) > 1)
      paste(what[[1]], "...") else what
    message("A condition of class \"",
            string1(class(condition)), "\" occurred, with message:\n",
            conditionMessage(condition))
    call <- conditionCall(condition)
    if(!is.null(call))
      message(
            "The condition occurred in: ", string1(deparse(call)))
    recover()
}
back to top