| 1 |
# deprecation warning is displayed with backtrace |
| 2 |
|
| 3 |
Code |
| 4 |
last_lifecycle_warnings() |
| 5 |
Output |
| 6 |
[[1]] |
| 7 |
<warning/lifecycle_warning_deprecated> |
| 8 |
Warning: |
| 9 |
`trace()` was deprecated in lifecycle 1.0.0. |
| 10 |
--- |
| 11 |
Backtrace: |
| 12 |
x |
| 13 |
1. +-lifecycle::expect_deprecated(f()) |
| 14 |
2. | \-testthat::expect_warning(...) |
| 15 |
3. | \-testthat:::expect_condition_matching_(...) |
| 16 |
4. | \-testthat:::quasi_capture(...) |
| 17 |
5. | +-testthat (local) .capture(...) |
| 18 |
6. | | \-base::withCallingHandlers(...) |
| 19 |
7. | \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) |
| 20 |
8. \-lifecycle (local) f() |
| 21 |
9. \-lifecycle (local) g() |
| 22 |
10. \-lifecycle (local) h() |
| 23 |
|
| 24 |
|