Something went wrong. Try again.
[mirror] R Package for a Mildly Opinionated Stan Bayesian Workflow stanflow.visruth.com
Something went wrong. Try again.
1.2 kB · 36 lines
12345678910111213141516171819202122232425262728293031323334353637% Generated by roxygen2: do not edit by hand% Please edit documentation in R/interfaces.R\name{setup_brms}\alias{setup_brms}\title{Setup brms}\usage{setup_brms(quiet, brms_backend, cores, dry_run = FALSE)}\arguments{\item{quiet}{Logical. If \code{TRUE}, suppresses status messages. This cannot suppress cmdstan messages.}
\item{brms_backend}{Character. The \code{brms} backend to use. Defaults to\code{getOption("brms.backend", "cmdstanr")} and must be one of\code{c("cmdstanr", "rstan")}.}
\item{cores}{Integer. Number of cores to use. Defaults to\code{getOption("mc.cores")}. You must set \code{options(mc.cores = ...)} or pass\code{cores} explicitly.}
\item{dry_run}{Logical. If \code{TRUE}, previews mutating setup actions withoutinstalling, attaching, changing options, or prompting. Dry-run output isshown even when \code{quiet = TRUE}.}}\value{Returns \code{NULL} invisibly.}\description{Configures \code{brms} to use available cores and sets the backend.Prefer \code{setup_interface()} for user-facing setup since it performs argumentvalidation and defaults; \code{setup_brms()} assumes inputs are already checked.}\examples{\dontrun{setup_brms(quiet = TRUE, brms_backend = "cmdstanr", cores = 2)}}