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-1917217520c6.parquet
#> - mrgsims-ds-191730a42993.parquet
#> ...
#> - mrgsims-ds-19177d008697.parquet
#> - mrgsims-ds-19177f9a9f1a.parquet
purge_temp()
#> Discarding 15 files.
list_temp()
#> No files in tempdir.