[Deprecated]

If call is a quosure or formula, the function will be retrieved from the associated environment. Otherwise, it is looked up in the calling frame.

call_fn(call, env = caller_env())

Arguments

call

A defused function call.

env

The environment where to find the definition of the function quoted in call in case call is not wrapped in a quosure.

See also

Examples

# Extract from a quoted call: call_fn(quote(matrix()))
#> function (data = NA, nrow = 1, ncol = 1, byrow = FALSE, dimnames = NULL) #> { #> if (is.object(data) || !is.atomic(data)) #> data <- as.vector(data) #> .Internal(matrix(data, nrow, ncol, byrow, dimnames, missing(nrow), #> missing(ncol))) #> } #> <bytecode: 0x5613cca166b0> #> <environment: namespace:base>