findCallsParam | R Documentation |
This function analyzes the code in a function and determines if it directly or indirectly invokes any of its parameters and, if so, which ones.
findCallsParam(fun, asCalls = FALSE)
fun |
the R function |
asCalls |
a logical value. If |
If asCalls
is FALSE
, a character vector identifying the names of all instances of calls to
a parameter.
Otherwise, a list of rstatic
Call
nodes.
Duncan Temple Lang
getGlobals
and what it identifies as a function rather
than a regular symbol/variable.
foo = function(x,f)
f(x + 1) + 2
findCallsParam(foo)
findCallsParam(optim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.