Posts

Showing posts with the label folding

How to fold verbatim text (not code) in R bookdown?

Image
How to fold verbatim text (not code) in R bookdown? In my document, I want to show some info, using ``` block, such as: ``` bruin@c7 ~ $ cat /etc/centos-release CentOS Linux release 7.4.1708 (Core) bruin@c7 ~ $ ``` For large output chunks, I want to fold them. How to do that? Searching the web it seems all related topics are about code folding, but what I want to fold is not any type of code, just simple text... Thanks! Not implemented: github.com/rstudio/rmarkdown/issues/664 – Yihui Xie Jun 28 at 14:58 1 Answer 1 Here is a very easy way to implement the following yourself: You can find all the code you need in the following reproducible RMD document: --- title: "Hide Verbatim Blocks" author: "Martin Schmelzer" date: "June 22, 2...