% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/run_covr_modes.R
\name{safe_unload_package}
\alias{safe_unload_package}
\title{Safely unload a package to avoid coverage conflicts}
\usage{
safe_unload_package(pkg)
}
\arguments{
\item{pkg}{Character string. The name of the package to unload.}
}
\value{
NULL (invisibly). Messages are printed to indicate success or failure.
}
\description{
This internal function attempts to unload a specified package if it is currently loaded.
It is used to prevent coverage conflicts when reloading the package in a custom environment.
}
\keyword{internal}
