rstudio / rmarkdown-cookbook

R Markdown Cookbook. A range of tips and tricks to make better use of R Markdown.
https://bookdown.org/yihui/rmarkdown-cookbook/
578 stars 224 forks source link

Add empty lines to "all code in the appendix" #387

Open paulcbauer opened 1 year ago

paulcbauer commented 1 year ago

Chapter https://bookdown.org/yihui/rmarkdown-cookbook/code-appendix.html outlines how to add all the code at the end of a chapter. I use it so that my students can copy the code from my in-class exercises/coding labs.

Is there a way to put empty lines between the code chunks of the resulting collected code?

That would make the collected code much more readable. Otherwise one would need to add empty lines in the single code chunks throughout the chapter.

Thanks!