suppressing error tracebacks

We are writing a book where we want to show the error message from some code but not a traceback. For example


tibble(x = 1:2) %>% 

where we specified the chunk with {r, error=TRUE}.

How can we get the error message without the traceback?


If you go to this page and search for "Backtrace", you'll see the result.

The site was rendered using rmarkdown::render_site(), and the source code is here.


This seems unusual!

This backtrack if from rlang.
Did you configured something like this from rlang somewhere? .Rprofile ?

I don't have an .Rprofile, but I updated rlang to the current version, and the problem disappeared.

Many thanks, we can close this question.

Glad it pointed out to the right thing.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.