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 Sept. 11, 2024, 9:03 p.m.