How to show a snippet of error in Rmarkdown

Hi, I would like to know how to show the last couple of sentences for the error message, which generated by the code chuck with knitr option "error=TRUE".

I am writing a book with bookdown, when I use "error =TRUE" option in the book, the error is so long so it takes a lot of pages.

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.