% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dt2_check_updates.R
\name{dt2_check_updates}
\alias{dt2_check_updates}
\title{Check for DataTables library updates}
\usage{
dt2_check_updates(quiet = FALSE)
}
\arguments{
\item{quiet}{Logical. If \code{TRUE}, returns the result invisibly without
printing. Default \code{FALSE}.}
}
\value{
A data.frame (invisibly) with columns:
\code{library}, \code{installed}, \code{latest}, \code{latest_ok},
\code{constraint}, \code{status}.

Status values:
\describe{
\item{\code{"ok"}}{Library is up to date.}
\item{\code{"UPDATE"}}{A compatible update is available.}
\item{\code{"PINNED"}}{A new major version exists, but is blocked by
the version constraint. The library is up to date within its
allowed range.}
\item{\code{"error"}}{Lookup failed (check your internet connection).}
}
}
\description{
Queries the npm registry to compare installed library versions against
the latest available versions. Version constraints are enforced to prevent
incompatible major version upgrades (e.g. jQuery 3.x will not jump to 4.x).
}
\examples{
\donttest{
dt2_check_updates()

# programmatic use
updates <- dt2_check_updates(quiet = TRUE)
updates[updates$status == "UPDATE", ]
}
}
