% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/topic.R
\name{topic_exists}
\alias{topic_exists}
\title{Is a topic documented?}
\usage{
topic_exists(topic, packages = pkg_search_attached())
}
\arguments{
\item{topic}{A single string naming an alias, matched exactly.
Use \code{\link[=topic_split]{topic_split()}} first if you need to handle qualified topics like
\code{"pkg::foo"}.}

\item{packages}{A character vector of package names (and/or source
package paths) to search, in order. Defaults to \code{\link[=pkg_search_attached]{pkg_search_attached()}}.
Unavailable packages are skipped.}
}
\value{
A single \code{TRUE} or \code{FALSE}.
}
\description{
Checks whether any of \code{packages} has an exact alias matching \code{topic}.
}
\examples{
topic_exists("rnorm", "stats")
topic_exists("rnorm", c("base", "stats"))
topic_exists("median")
topic_exists("not-a-topic", "stats")
}
