mem_cleanup: Clean up Search Analysis Objects to Free Memory
Description
Removes intermediate and temporary objects created during analysis to free memory.
This is particularly useful for large-scale analyses.
Usage
mem_cleanup(keep_results = TRUE, verbose = TRUE, env = parent.frame())
Value
Amount of memory freed in MB
Arguments
- keep_results
Logical, whether to keep final results
- verbose
Logical, whether to print memory freed information
- env
Environment to clean (defaults to parent.frame())