wrap_function: Wrap an expression in a function

Description Usage Arguments Author(s) Examples

View source: R/wrap_function.R

Description

Wrap an expression in a function

Usage

1

Arguments

body

of the call

pipe

character; the pipe used

env

environment;

This is a monkey patch of magrittr's wrap_function that extends the functionality to perform non-standard-evaluation and introspect the RHS of pipe within the LHS.

Author(s)

magrittr authors + Chris Brown

Examples

1
2
3
  ll <- list( a=1, b=2 )
  ll %>% a
  ll %>% b

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