Removing YAML from an RMD file through an R script
Autar Kaw
So you want to write a book from many RMD files using bookdown. Here is an R script that strips the YAML lines of an Rmd file because bookdown does not accept files with its own YAML. A new file is created that has no YAML. The program is written just for one Rmd file, and I will be writing an extension of it to do this for a whole directory including subdirectories. I will soon write a script that will move the YAML absent RMD files and associated sub-directories to a new directory of its...
