#' Default value operator
#'
#' @description
#' Returns left side if not NULL, otherwise right side
#'
#' @param lhs Left hand side
#' @param rhs Right hand side (default value)
#'
#' @return lhs if not NULL, otherwise rhs
#' @keywords internal
#' @noRd
`%||%` <- function(lhs, rhs) {
if (!is.null(lhs)) lhs else rhs
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.