% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/manage_deprecation.R
\name{manage_deprecation}
\alias{manage_deprecation}
\title{Interactive Lifecycle Manager}
\usage{
manage_deprecation()
}
\value{
Invisibly returns a named list with components: \code{status} ("done",
"cancelled", or "error"), \code{old_function}, \code{new_function},
\code{wrapper_file}, and \code{replacements} (integer count).
}
\description{
Scaffolds CRAN-compliant deprecation wrappers and interactively 
refactors old function calls across tests and vignettes to ensure 
a smooth transition to new API versions.
}
\details{
The function manages the deprecation lifecycle through the following steps:
\enumerate{
  \item Prompts the user for the name of the function to be deprecated and its replacement.
  \item Automatically generates a deprecated wrapper function that calls `.Deprecated()` 
      and then forwards arguments to the new function.
  \item Appends this wrapper to `R/deprecated.R`, ensuring the package remains 
      backward compatible while warning users.
  \item Optionally scans the `tests/` and `vignettes/` directories for occurrences 
      of the old function and interactively replaces them with the new one.
}
}
\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()) {
  manage_deprecation()
}
}
