% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/help_compatibility_layer.R
\name{review_accessors}
\alias{review_accessors}
\alias{anchor_review}
\alias{precision_review}
\title{Extract canonical review components}
\usage{
anchor_review(x, required = TRUE)

precision_review(x, required = TRUE)
}
\arguments{
\item{x}{A fitted \code{mfrm_fit}, diagnostics object, summary object, or
compatible list containing the requested review component.}

\item{required}{Logical. If \code{TRUE}, error when no compatible review component
is found. If \code{FALSE}, return \code{NULL} instead.}
}
\value{
\code{anchor_review()} returns an \code{mfrm_anchor_review}-like object when available.
\code{precision_review()} returns the precision-review table when available.
If \code{required = FALSE} and no component is available, both helpers return
\code{NULL}.
}
\description{
Extract canonical review components
}
\details{
\code{anchor_review()} returns the fitted object's \code{config$anchor_review}
component. \code{precision_review()} returns the diagnostics
\code{precision_review} table. These helpers intentionally do not search older
field names.
}
\examples{
fit_like <- list(config = list(
  anchor_review = structure(list(issue_counts = data.frame()),
                            class = "mfrm_anchor_review")
))
anchor_review(fit_like)
diag_like <- list(
  precision_review = data.frame(Check = "SE", Status = "ok", Detail = "Model-based")
)
precision_review(diag_like)
}
