Learn R Programming

foodwebr (version 1.0.0)

functions_called_by: Which functions does a function call?

Description

Given an input function fn_name and a list of candidate functions funs_to_match, return a list of all the functions in funs_to_match that appear in the definition of fn_name.

Usage

functions_called_by(fn_name, funs_to_match, where)

Value

A character vector listing the functions in funs_to_match that call fn_name.

Arguments

fn_name

<chr>
The name of the function of interest

funs_to_match

<chr>
Only these functions will be considered as parents

where

<env>
An environment, or text specifying an environment