Whenever an error occurs during a build of a bookdown document the cleanup procedure of RStudio does not delete all output files. Files starting with _main seam to survive the ordinary clean up process. This helper function removes those files.
1 | bookdown_cleanup(pspath = ".", pspattern = "_main")
|
pspath |
directory where the bookdown files are built |
pspattern |
pattern matching the files to be deleted |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.