rremove_unused_plots: Remove unused plot files

View source: R/delete_old_plots.R

rremove_unused_plotsR Documentation

Remove unused plot files

Description

This function identifies and removes PDF plots in the specified plot directory that are not referenced by any R scripts in the specified code directory.

Usage

rremove_unused_plots(code_dir, plot_dir)

Arguments

code_dir

The directory containing the R code files.

plot_dir

The directory containing the PDF plot files.

Value

A character vector of the plots that were deleted.

Examples

remove_unused_plots(
    code_dir = "path/to/code/directory",
    plot_dir = "path/to/plot/directory"
)


hhilbig/haschaR documentation built on Dec. 26, 2024, 5:40 a.m.