call_new: Create a call by "hand"

Description Usage Arguments Examples

View source: R/call.R

Description

Create a call by "hand"

Usage

1
call_new(f, ..., .args = list())

Arguments

f

Function to call. For make_call, either a string, a symbol or a quoted call. For do_call, a bare function name or call.

..., .args

Arguments to the call either in or out of a list

Examples

1
2
3
4
5
6
7
8
# f can either be a string, a symbol or a call
call_new("f", a = 1)
call_new(quote(f), a = 1)
call_new(quote(f()), a = 1)

#' Can supply arguments individually or in a list
call_new(quote(f), a = 1, b = 2)
call_new(quote(f), .args = list(a = 1, b = 2))

lazyeval documentation built on May 19, 2017, 2:50 p.m.

Search within the lazyeval package
Search all R packages, documentation and source code