R Under development (unstable) (2025-04-29 r88182 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > > library(winch) > > foo <- function() { + winch_call(bar) + } > > bar <- function() { + purrr::map(1, ~ baz()) + } > > baz <- function() { + winch_call(boo) + } > > boo <- function() { + winch_add_trace_back() + } > > if (winch_available() && requireNamespace("purrr")) { + tryCatch(foo(), error = identity) + } Loading required namespace: purrr [[1]] ▆ 1. ├─base::tryCatch(foo(), error = identity) 2. │ └─base (local) tryCatchList(expr, classes, parentenv, handlers) 3. │ └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 4. │ └─base (local) doTryCatch(return(expr), name, parentenv, handler) 5. └─global foo() 6. └─winch::winch_call(bar) 7. └─`/winch.dll`::register_frame_ctor() 8. └─global ``() 9. └─purrr::map(1, ~baz()) 10. └─purrr:::map_("list", .x, .f, ..., .progress = .progress) 11. ├─purrr:::with_indexed_errors(...) 12. │ └─base::withCallingHandlers(...) 13. └─purrr:::call_with_cleanup(...) 14. └─`/purrr.dll`::register_frame_ctor() 15. └─`/purrr.dll`::register_frame_ctor() 16. └─.f(.x[[i]], ...) 17. └─global baz() 18. └─winch::winch_call(boo) 19. └─`/purrr.dll`::register_frame_ctor() 20. └─`/purrr.dll`::register_frame_ctor() 21. └─`/purrr.dll`::register_frame_ctor() 22. └─`/winch.dll`::register_frame_ctor() 23. └─global ``() Warning message: `winch_add_trace_back()` was deprecated in winch 0.1.0. > > proc.time() user system elapsed 0.42 0.09 0.51