I am facing the current situation:
I built a book thanks to bookdown package, where each .Rmd file is a chapter of the book.
I would like to keep the ability to render each .Rmd file in the Viewer Pane as it can be done with a classical .Rmd file with its yaml part at the beginning. The bookdown structure imposes to get rid of this yaml and hence, I did not find a simple way to render my .Rmd file.
Currently I am living with 2 versions of my project:
- one that contains the .Rmd files without their yaml
- one that contains the .Rmd files with their yaml
Of course, I know this is bad practice and I would like to have one source of truth.