R/utils.R

`%|||%` <- function (x, y) {
  #based on the purrr/rlang op-null-default
  if (is.null(x) | is.na(x)) {
    y
  }
  else {
    x
  }
}
NCEAS/metajam documentation built on Aug. 25, 2024, 1:02 a.m.