R Markdown may create many documents while rendering the final product, for instance by using knitr to turn the R Markdown file to a Markdown file and then using Pandoc to convert to the final output. The clean field tells R Markdown whether or not to remove these files.

yml_clean(.yml, clean)



a yml object created by yml(), as_yml(), or returned by a yml_*() function


Logical. Remove intermediate files that are created while making the R Markdown document?


a yml object

See also


yml() %>% # keep intermediate files yml_clean(FALSE)
#> --- #> author: runner #> date: '`r format(Sys.Date())`' #> clean: false #> --- #>