tests/testthat/_snaps/warning.md

deprecation warning is displayed with backtrace

Code
  last_lifecycle_warnings()
Output
  [[1]]
  <warning/lifecycle_warning_deprecated>
  Warning:
  `trace()` was deprecated in lifecycle 1.0.0.
  ---
  Backtrace:
       x
    1. +-lifecycle::expect_deprecated(f())
    2. | \-testthat::expect_warning(...)
    3. |   \-testthat:::expect_condition_matching(...)
    4. |     \-testthat:::quasi_capture(...)
    5. |       +-testthat (local) .capture(...)
    6. |       | \-base::withCallingHandlers(...)
    7. |       \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. \-lifecycle (local) f()
    9.   \-lifecycle (local) g()
   10.     \-lifecycle (local) h()


r-lib/lifecycle documentation built on Nov. 6, 2023, 11:33 p.m.