R: Removes/cleans files and folders that have been saved
SimClean
R Documentation
Removes/cleans files and folders that have been saved
Description
This function is mainly used in pilot studies where results and datasets have been temporarily saved
by runSimulation but should be removed before beginning the full
Monte Carlo simulation (e.g., remove files and folders which contained bugs/biased results).
one or more character objects indicating which files to remove. Used to remove
.rds files which were saved with saveRDS or when using the save
and filename inputs to runSimulation
dirs
a character vector indicating which directories to remove
generate_data
logical; remove the .rds data-set files
saved when passing save_generate_data = TRUE?
results
logical; remove the .rds results files
saved when passing save_results = TRUE?
seeds
logical; remove the seed files
saved when passing save_seeds = TRUE?
temp
logical; remove the temporary file saved when passing save = TRUE?
save_details
a list pertaining to information about how and where files were saved
(see the corresponding list in runSimulation)