get_global_calls: Get global function calls from a function

Description Usage Arguments Details Value

View source: R/expressions.R

Description

Note the results are approximate only. R's dynamic nature does not allow us to always find the global calls reliably.

Usage

1
get_global_calls(func, funcname, envir = parent.frame())

Arguments

func

The function to examine.

funcname

Name of the function.

envir

The environment containing the function. This environment is also used to look for S3 methods.

Details

Calls can be:

Internally we use findGlobals for finding the global calls and variables.

Note that by default calls to base function are also included in the result, even of they are primitive functions (e.g. <-, ==, etc.).

Value

A data frame of function calls and call types.


MangoTheCat/functionMap documentation built on May 7, 2019, 2:10 p.m.