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

Try the fontawesome package in your browser

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

fontawesome documentation built on Aug. 19, 2023, 9:06 a.m.