% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/audit_dependencies.R
\name{audit_dependencies}
\alias{audit_dependencies}
\title{Interactive Dependency Diplomat (Base R Edition)}
\usage{
audit_dependencies()
}
\value{
Invisibly returns a named list with components: \code{status} ("done",
"clean", or "error"), \code{ghost_deps}, \code{bloat_deps},
\code{misclassified}, and \code{description_modified} (logical).
}
\description{
Scans package source code for external package calls and cross-references 
them against the `DESCRIPTION` file to interactively resolve missing, unused, 
or misclassified dependencies without requiring any external tools.
}
\details{
The function implements a zero-dependency approach to dependency auditing:
\enumerate{
  \item Parses the `DESCRIPTION` file to identify currently declared `Imports` and `Suggests`.
  \item Recursively scans the `R/`, `tests/`, and `vignettes/` directories for `::` calls, 
      `library()` calls, and `require()` calls.
  \item Filters out base R packages.
  \item Interactively prompts the user to add missing dependencies or remove unused ones 
      from the `DESCRIPTION` file.
}
}
\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()) {
  audit_dependencies()
}
}
