Learn R Programming

wrapr (version 1.4.0)

wrapr_function.default: Wrapr function.

Description

S3 dispatch on tyhpe of pipe_right_argument.

Usage

# S3 method for default
wrapr_function(pipe_left_arg, pipe_right_arg,
  pipe_environment, pipe_name = NULL)

Arguments

pipe_left_arg

left argument.

pipe_right_arg

right argument (general object, not a function).

pipe_environment

environment to evaluate in.

pipe_name

character, name of pipe operator.

Value

result

Examples

Run this code
# NOT RUN {
f <- function() { print("execute"); 0}
a <- substitute({. + 1 + f()})
5 %.>% a


# }

Run the code above in your browser using DataLab