Thanks -- will look into it.
luke
On Fri, 1 Dec 2017, William Dunlap via R-devel wrote:
The following example involves a function whose on.exit()
expression both generates an error and catches the error.
The body of the function also generates an error.
When calling the function wrapped in a
Things work as I would expect if you give stop() a condition object instead
of a string:
makeError <- function(message, class = "simpleError", call = sys.call(-2)) {
structure(list(message=message, call=call), class=c(class, "error",
"condition"))
}
f0 <- function() {
on.exit(tryCatch(expr
The following example involves a function whose on.exit()
expression both generates an error and catches the error.
The body of the function also generates an error.
When calling the function wrapped in a tryCatch, should
that tryCatch's error function be given the error from the
body of the funct
> Patrick Perry
> on Thu, 30 Nov 2017 22:45:21 -0500 writes:
> Converting a data.frame with a nested data.frame to a matrix fails:
> x <- structure(list(a = data.frame(letters)),
> class = "data.frame",
> row.names = .set_row_names(26))
> as.matrix(x)
> #> Err