R/utils-pipe.R

#' Pipe operator
#'
#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs \%>\% rhs
NULL

"%||%" <- function(a, b) {
  if (!is.null(a)) a else b
}
ryantimpe/brickr documentation built on Jan. 15, 2024, 10:29 p.m.