Files
brickr/R/utils-pipe.R

15 lines
264 B
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
}