R/utils.R

Defines functions is_na `%||%`

# @staticimports pkg:staticimports
#   s3_register

# nocov start

`%||%` <- function(x, y) {
  if (is.null(x)) y else x
}

is_na <- function(x) {
  isTRUE(is.na(x))
}

# nocov end
rstudio/fontawesome documentation built on Nov. 21, 2024, 12:03 a.m.