clean_up: clean_up helper function

View source: R/utils.R

clean_upR Documentation

clean_up helper function

Description

Internal function to clean up directories.

Usage

clean_up(plotdir, csvdir)

Arguments

plotdir

A character string. Path to the folder, where plots are saved.

csvdir

A character string. Path to the folder, where resulting tables are saved.

Value

This function silently cleans up the current session and removes both, the plotdir- and the csvdir-folders. It furthermore resets the future-backend to plan = "sequential".

See Also

plan

Examples

plotdir <- paste0(tempdir(), "/plots/")
csvdir <- paste0(tempdir(), "/csv/")

clean_up(plotdir, csvdir)


rBiasCorrection documentation built on April 12, 2025, 1:16 a.m.