Functions for inspecting and cleaning up package-managed parquet files in
tempdir(). list_temp() shows what is present; purge_temp()
resets the simulation file system.
purge_temp() deletes all package-managed files unconditionally and clears
the ownership maps, resetting the system to a clean state. It is intended
for use in testing teardown or session cleanup, not routine usage.
Value
list_temp() returns a character vector of file paths invisibly, and prints
a summary to the console unless quietly = TRUE.
purge_temp() returns NULL invisibly.
Examples
mod <- house_ds()
out <- lapply(1:10, \(x) mrgsim_ds(mod))
list_temp()
#> 15 files [143.7 Kb]
#> - mrgsims-ds-1a4e13c4445.parquet
#> - mrgsims-ds-1a4e188b2469.parquet
#> ...
#> - mrgsims-ds-1a4e6cafcb82.parquet
#> - mrgsims-ds-1a4e6f71138d.parquet
purge_temp()
#> Discarding 15 files.
list_temp()
#> No files in tempdir.