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)

Arguments

.yml

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

clean

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

Value

a yml object

Examples


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