https://github.com/cran/SoDA
Tip revision: 9e5b9bb8a0564f8bf629df4ca5e96d3078f50363 authored by jmc on 14 July 2008, 00:00:00 UTC
version 1.0-2
version 1.0-2
Tip revision: 9e5b9bb
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()
}