% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/package_installed.R
\name{extract_packages}
\alias{extract_packages}
\title{Extract package names referenced in R files}
\usage{
extract_packages(paths)
}
\arguments{
\item{paths}{Character vector of file or directory paths. Directories are
scanned for \code{.R} files.}
}
\value{
A sorted character vector of unique package names.
}
\description{
Scans R files for \code{library()}, \code{require()}, and \verb{pkg::} usage and returns
a character vector of unique package names.
}
\keyword{internal}
