cleanup_output: Cleanup a directory from temporary output files

Description Usage Arguments

Description

Remove all files and possibly also directories that were generated as ouput from a previous compilation of a document in directory ps_docu_path. All files that match the pattern specified by pvec_pattern are selected for deletion. The user is asked whether the files should be deleted before actually deleting them. By default, directories are ignored, even if they match the given pattern. In case directories are to be included the argument pb_ignore_dir must be set to FALSE.

Usage

1
2
3
cleanup_output(ps_docu_path = "vignettes", pvec_docu_root = NULL,
  pvec_pattern = c("pdf$", "png$"), pb_ignore_dir = TRUE,
  pb_interactive = TRUE)

Arguments

ps_docu_path

Name of the document path

pvec_docu_root

Vector of prefixes matching document output files

pvec_pattern

Pattern to match by files to be deleted

pb_ignore_dir

Flag indicating whether directories should be ignored

pb_interactive

Should user be asked whether to delete files


charlotte-ngs/rmddochelper documentation built on June 27, 2019, 1:22 a.m.