R/utils-pipe.R

#' Pipe operator
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom purrr %>%
#' @usage lhs \%>\% rhs
#' @return The result of \code{rhs(lfs)}.
NULL

#' NULL operator
#'
#' @name %||%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom purrr %||%
#' @usage x \%||\% y
#' @return If \code{rhs} is NULL, will return \code{lhs}; otherwise returns \code{rhs}.
NULL

Try the decorators package in your browser

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

decorators documentation built on Sept. 30, 2022, 5:06 p.m.