find_function: Find Function Definition for Call

Description Usage Arguments Details Value

View source: R/match_call.R

Description

This function returns the definition of the function to be called by an unevaluated call.

Usage

1
2
3
4
5
6
7
find_function(node, envir, top)

## S3 method for class 'call'
find_function(node, envir = parent.frame(), top = TRUE)

## S3 method for class 'Call'
find_function(node, envir = parent.frame(), top = TRUE)

Arguments

node

(call|Call) The unevaluated call.

envir

(environment) An environment to look up the definition.

top

(logical) Is this the top-level call to find_function()? This parameter should not be set by the user.

Details

This function raises an error if it is unable to find the definition.

Value

A function.


nick-ulle/ast documentation built on Oct. 18, 2019, 4:37 a.m.