cleanup_vignettes: Cleaning up a vignette directory

Description Usage Arguments Details

Description

cleanup_vignettes removes all output files that were produced by compiling document sources. The goal is to have only source files after the cleanup process.

Usage

1
cleanup_vignettes(psPath = "vignettes", psPattern = "pdf$")

Arguments

psPath

path to root directory which should be cleaned

psPattern

that files to be clean match

Details

The approach taken in function cleanup_vignettes is to specify the pattern of the files to be deleted and the pattern of the files to keep. The reason for this is that the number of ouput formats to be specified is much smaller than the number of files that must be kept. The files to be removed are first collected into a vector, then the user is asked whether to remove all files. This is a security feature to avoid deleting files accidentally.


pvrqualitasag/rqudocuhelper documentation built on May 26, 2019, 11:34 a.m.