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 Feb. 2, 2023, 10:26 a.m.