print_and_pipe: '%P>%' Prints and pipes

Description Usage Arguments Value Note Examples

View source: R/print_and_pipe.R

Description

This pipe variant prints the object received from the left hand side prior to piping it to the right hand side.

Usage

1
lhs %P>% rhs

Arguments

lhs

The left hand side of the pipe.

rhs

The right hand side of the pipe.

Value

called for side effects

Note

This code is experimental. Use at your own risk.

Examples

1
2
3
4
  if (!require(dplyr)) stop("Examples need dplyr to run")
  mtcars %>%
    filter(am == 1) %P>%
    select(qsec)

ViewPipeSteps documentation built on Dec. 16, 2021, 1:06 a.m.