% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nleqslv.R
\name{check_nleqslv_result}
\alias{check_nleqslv_result}
\title{Check the result returned by nleqslv}
\usage{
check_nleqslv_result(root, label, ftol)
}
\arguments{
\item{root}{The list returned by `nleqslv::nleqslv()`.}

\item{label}{Character string used as a prefix in messages to identify
the calling method.}

\item{ftol}{The function-value convergence tolerance, used to assess
whether partial convergence is acceptable.}
}
\value{
`invisible(TRUE)` on success or acceptable convergence;
  otherwise stops or warns.
}
\description{
Inspects the termination code (`termcd`) from `nleqslv::nleqslv()` and
either returns silently on success, issues a warning for partial
convergence, or stops with an informative error message on failure.
}
\keyword{internal}
