inside_pipe: inside_pipe

Description Usage Arguments Details Value Examples

View source: R/inside_pipe.R

Description

Detects if the function is being used in a magrittr pipe

Usage

1

Arguments

...

arguments

Details

Examines parent.frames to see if the function is being used in a magrittr pipe. This is useful when the presence of a pipe effects what you need to do.

Value

logical

Examples

1
2
3
4
"foo" %>% ( function(x) inside_pipe() )
f <- function(x) inside_pipe(x)

"foo" %>% f

ctbrown/magrittr.plus documentation built on May 23, 2020, 12:17 p.m.