backtrace

0th

Percentile

Back trace the expressions evaluated when an error was caught

Back trace the expressions evaluated when an error was caught

Usage
backtrace(future, envir = parent.frame(), ...)
Arguments
future

A future with a caught error.

envir

the environment where to locate the future.

Not used.

Value

A list with the future's call stack that led up to the error.

Aliases
  • backtrace
Examples
# NOT RUN {
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)
})
# }
# NOT RUN {
# }
Documentation reproduced from package future, version 1.16.0, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.