make_call {pryr} | R Documentation |
Make and evaluate calls.
Description
Make and evaluate calls.
Usage
make_call(f, ..., .args = list())
do_call(f, ..., .args = list(), .env = parent.frame())
Arguments
f |
Function to call. For |
... , .args |
Arguments to the call either in or out of a list |
.env |
Environment in which to evaluate call. Defaults to parent frame. |
Examples
# f can either be a string, a symbol or a call
make_call("f", a = 1)
make_call(quote(f), a = 1)
make_call(quote(f()), a = 1)
#' Can supply arguments individual or in a list
make_call(quote(f), a = 1, b = 2)
make_call(quote(f), list(a = 1, b = 2))
[Package pryr version 0.1.6 Index]