% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_covr_modes.R
\name{remove_new_globals}
\alias{remove_new_globals}
\title{Remove New Globals from Environment Based on Initial Snapshot}
\usage{
remove_new_globals(env, initial_state, patterns = NULL, dry_run = FALSE)
}
\arguments{
\item{env}{Environment to clean.}

\item{initial_state}{Character vector of object names before setup.}

\item{patterns}{Optional regex patterns to filter objects.}

\item{dry_run}{Logical. If TRUE, only prints what would be removed.}
}
\value{
Invisibly returns a character vector of removed object names.
}
\description{
This function removes objects from an environment that were added after
a recorded initial state. Optionally filters by pattern.
}
\keyword{internal}
