Skip to contents

Deletes cached .rds files used by functions such as object_scatter(). You can either remove the entire cache directory or only files older than a given number of days.

Usage

clear_pliman_cache(all = TRUE, days = NULL)

Arguments

all

Logical. If TRUE (default), deletes the entire cache directory.

days

Integer (optional). If provided, removes only files older than days. Ignored if all = TRUE.

Value

Invisibly returns TRUE if the operation was successful.

Examples

if(interactive()){
# Clear everything
clear_pliman_cache()

# Clear only files older than 7 days
clear_pliman_cache(all = FALSE, days = 7)
}