inst/examples/errors.R

#' End_wait: 20
# Demonstrate that errors are handled well

# Base R error
library("not-this-really")
traceback()

# callr errors are saved to `.Last.error`, including a stack trace
library(cli)
callr::r(function() library("another-failure"))
.Last.error
gaborcsardi/asciicast documentation built on Oct. 13, 2024, 6:27 p.m.