% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/build-run.R
\name{build_code_from_spec}
\alias{build_code_from_spec}
\title{Build NIMBLE model code from a compiled model spec}
\usage{
build_code_from_spec(spec)
}
\arguments{
\item{spec}{A compiled model specification produced by \code{compile_model_spec()}.}
}
\value{
A \code{nimbleCode} object.
}
\description{
Dispatches to the backend-specific code generators:
\itemize{
\item \code{build_code_sb_from_spec()} for stick-breaking (\code{"sb"})
\item \code{build_code_crp_from_spec()} for CRP and spliced (\code{"crp"}, \code{"spliced"})
}
}
\details{
The model size is controlled by \code{spec$meta$components} only.
}
\keyword{internal}
