% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.R
\name{safe_rtmb_model}
\alias{safe_rtmb_model}
\title{Safe RTMB model construction (with error message translation)}
\usage{
safe_rtmb_model(data, code, par_names = list(), init = NULL, view = NULL)
}
\arguments{
\item{data}{A list of data that has passed `validate_data`.}

\item{code}{Code blocks for likelihood and priors defined with `model_code({})`.}

\item{par_names}{A list of variable names corresponding to the dimensions of each parameter (optional).}

\item{init}{A list or numeric vector of initial values (optional).}

\item{view}{Character vector of parameter names to be displayed preferentially in summary outputs (optional).}
}
\value{
Returns an `rtmb_model` object (R6 class instance) upon successful compilation.
}
\description{
Wraps `rtmb_model` to translate cryptic error messages generated during `MakeADFun`
execution (originating from C++/RTMB) into user-friendly hints.
}
