% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hunt_zombies.R
\name{hunt_zombies}
\alias{hunt_zombies}
\title{Zombie Data Hunter}
\usage{
hunt_zombies()
}
\value{
Invisibly returns a named list with components: \code{status} ("done" or
"cancelled"), \code{actions_taken} (character vector),
\code{temp_flushed_mb} (numeric), and \code{devices_closed} (integer).
}
\description{
Hunts down "invisible" memory hogs such as massive temporary files, 
unclosed graphical devices, and uncollected garbage, prompting 
the user for targeted cleaning to reclaim system resources.
}
\details{
The function performs a system scan for three types of "zombie" data:
\enumerate{
  \item \strong{Temporary Files}: Calculates the total size of the current 
      session's temporary directory. If it exceeds 5 MB, it offers to flush it.
  \item \strong{Graphical Devices}: Checks for any open graphical devices 
      (e.g., PDF, PNG, or RStudioGD) and offers to close all of them.
  \item \strong{Orphaned Memory}: Offers to perform a "deep" garbage collection 
      by calling `gc()` twice, which forces R to clear both older and newer 
      generations of memory.
}
}
\section{Warning}{

This function modifies files on disk or the global environment. Please ensure you have a backup or are using version control (e.g., Git) before execution.
}

\examples{
if (interactive()) {
  hunt_zombies()
}
}
