Skip to contents

clean_quarto_render() deletes auxiliary files and directories generated during the Quarto rendering process. This helps to keep the project directory clean and organized.

Usage

clean_quarto_render(
  file = NULL,
  dir = NULL,
  ext = c("aux", "cls", "loa", "log"),
  ignore = NULL,
  wd = here::here()
)

Arguments

file

(optional) A character vector indicating specific files to delete (default: NULL).

dir

(optional) A character vector indicating specific directories to delete (default: NULL).

ext

(optional) A character vector indicating file extensions of files to delete (default: c("aux", "cls", "loa", "log")).

ignore

(optional) A character vector of patterns to ignore when deleting files (default: NULL).

wd

(optional) A character string indicating the working directory (default: here::here()).

Value

A invisible NULL. The function is called for its side effect of modifying the target file.

Examples

if (FALSE) { # \dontrun{
  library(here)

  clean_quarto_render(
    file = c("temp.aux", "temp.log"),
    dir = c("temp_dir"),
    ext = c("aux", "log"),
    ignore = c("important.log"),
    wd = here()
  )
} # }