R/utils.R

Defines functions `%||%`

# This can be deleted in favour of base R version if we ever start depending
# on R (>= 4.4.0)
`%||%` <- function(x, y) {
  if (is.null(x)) { # nolint: coalesce_linter.
    y
  } else {
    x
  }
}

Try the mcmcensemble package in your browser

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

mcmcensemble documentation built on Aug. 8, 2025, 7:04 p.m.