-
Notifications
You must be signed in to change notification settings - Fork 81
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
Entrace base errors? #230
Comments
Proof of concept at fix-top-trace...add-base-entrace: remotes::install_github("tidyverse/reprex@add-base-entrace") When prompted, upgrade knitr and evaluate.
|
We should also provide some optional way to activate this for warnings too. |
|
Or should we capture all warnings, with an accompanying trace? |
@lionel- Has the world changed since we last discussed this? What's the best way to support entrancing base errors? |
Adding |
* Don't show backtrace Fixes #448. Closes #433. Closes #230. * Re-document() --------- Co-authored-by: Jenny Bryan <[email protected]>
This is a follow-up to #229 and how dev rlang always shows a backtrace on error in non-interactive sessions. It might be helpful and more consistent to entrace base errors with
rlang::entrace()
. Unfortunately, simply settingoptions(error = rlang::entrace)
doesn't work becausermarkdown::render()
captures the errors beforeentrace()
has a chance to be called.Would it be worth it to find a solution to that problem? The easiest way might be to add an option to entrace errors in rmarkdown itself.
The text was updated successfully, but these errors were encountered: