packrat/lib/x86_64-w64-mingw32/3.6.1/rlang/tests/testthat/fixtures/error-backtrace-empty.R

options(
  crayon.enabled = FALSE,
  cli.unicode = FALSE
)

library(rlang)

opt <- Sys.getenv("rlang_backtrace_on_error")
if (nzchar(opt)) {
  options(rlang_backtrace_on_error = opt)
}

depth <- as.integer(Sys.getenv("trace_depth"))

if (depth == 1) {
  f <- function() abort("foo")
  f()
} else {
  abort("foo")
}
jmcascalheira/LGMIberiaCluster documentation built on June 8, 2021, 10 a.m.