cleanTex: Remove Unwanted LaTeX files after building document

View source: R/cleanTex.R

cleanTexR Documentation

Remove Unwanted LaTeX files after building document

Description

Convenience function for cleaning up your directory after running pdflatex

Usage

cleanTex(fn, keepPDF = TRUE, keepRnw = TRUE, keepRproj = TRUE)

Arguments

fn

a filename for your .Rnw file

keepPDF

Logical. Should function save PDF files with filename fn. Default is TRUE.

keepRnw

Logical. Should function save Rnw files with filename fn. Default is TRUE.

keepRproj

Logical. Should function save .Rproj files with filename fn. Default is TRUE.

Value

Nothing. All files except the .tex, .pdf and .Rnw are removed from your directory.

Deprecation

Deprecated in eeptools 1.3.0. Modern knitr/Quarto workflows manage their own build artifacts, so this Sweave-era helper is no longer needed. It will be removed in a future release.


eeptools documentation built on June 23, 2026, 1:06 a.m.