rlang (version 0.0.0.9000)

new_call: Create a call by "hand"

Description

Create a call by "hand"

Usage

new_call(.fn, ..., .args = list())

Arguments

.fn
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

See Also

call_modify

Examples

Run this code
# fn can either be a string, a symbol or a call
new_call("f", a = 1)
new_call(quote(f), a = 1)
new_call(quote(f()), a = 1)

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

Run the code above in your browser using DataLab