R/utils-pipe.R

#' Pipe operator
#'
#' The pipe, `%>%`, is imported from magrittr and reexported for scrutiny users.
#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details.
#'
#' @name %>%
#' @rdname pipe
#' @keywords internal
#' @export
#' @importFrom magrittr %>%
#' @usage lhs \%>\% rhs
#' @param lhs A value or the magrittr placeholder.
#' @param rhs A function call using the magrittr semantics.
#' @return The result of calling `rhs(lhs)`.
NULL
lhdjung/scrutiny documentation built on Sept. 28, 2024, 12:14 a.m.