R/zzz.R

Defines functions `%||%`

#' @importFrom stats .getXlevels ave chisq.test fisher.test kmeans lm na.pass optim prcomp qt rchisq setNames update
#' @importFrom utils write.csv
NULL

`%||%` <- function(a, b) {
  if (!is.null(a)) a else b
}

# Add global variables to avoid R CMD check notes
utils::globalVariables(c("N", "Y", "iteration", "chain", "value", "variable"))

Try the BayesRTMB package in your browser

Any scripts or data that you put into this service are public.

BayesRTMB documentation built on Nov. 24, 2026, 9:06 a.m.