Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user-supplied calling handlers #105

Merged
merged 1 commit into from
Jan 6, 2022

Conversation

lionel-
Copy link
Member

@lionel- lionel- commented Dec 2, 2021

Registered in the innermost context so that they are called before capture with try().

This allows registering rlang::entrace() to enrich all base errors and enable usage of last_error() in Rmd chunk.

Progress towards tidyverse/reprex#230.
cc @hadley @jennybc

Registered in the innermost context so that they are called even
within `try()`.
@lionel-
Copy link
Member Author

lionel- commented Dec 2, 2021

Companion PR at yihui/knitr#2079.

@hadley
Copy link
Member

hadley commented Dec 2, 2021

LGTM

Copy link
Collaborator

@yihui yihui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@yihui yihui merged commit 0202253 into r-lib:main Jan 6, 2022
@lionel- lionel- deleted the add-calling-handlers branch January 7, 2022 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants