R/utils.R

`%|||%` <- function (x, y) {
  #based on the purrr/rlang op-null-default
  if (is.null(x) | is.na(x)) {
    y
  }
  else {
    x
  }
}

Try the metajam package in your browser

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

metajam documentation built on July 3, 2024, 9:07 a.m.