backtrace | R Documentation |
Back trace the expressions evaluated when an error was caught
backtrace(future, envir = parent.frame(), ...)
future |
A future with a caught error. |
envir |
the environment where to locate the future. |
... |
Not used. |
A list with the future's call stack that led up to the error.
my_log <- function(x) log(x)
foo <- function(...) my_log(...)
f <- future({ foo("a") })
res <- tryCatch({
v <- value(f)
}, error = function(ex) {
t <- backtrace(f)
print(t)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.