functions: FunctionDefinitions

Description Usage Arguments Details Author(s)

Description

Find function definitions inside R expressions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
FunctionDefinitions(expr, ...)
## S3 method for class 'expression'
FunctionDefinitions(expr, as.data.table=TRUE,
                                         keep.code=TRUE, ...)
## S3 method for class 'package.code'
FunctionDefinitions(expr, as.data.table=TRUE, ...)
FunctionCalls(expr, ignore.common=TRUE, ...)
## S3 method for class 'expression'
FunctionCalls(expr, ignore.common=TRUE, ...)
## S3 method for class 'package.code'
FunctionCalls(expr, ignore.common=TRUE, ...)
Globals(expr, ...)
## S3 method for class 'expression'
Globals(expr, ...)
## S3 method for class 'package.code'
Globals(expr, ...)

Arguments

expr

R expression object.

as.data.table

Converts result as a data.table if TRUE.

keep.code

If converting results as a data.table,kKeeps source code reference if TRUE.

ignore.common

If TRUE ignores common function calls like `(`, `\{`, `$`, if, `+`, etc.

...

Further arguments to pass to method implementation.

Details

FunctionDefinitions returns a list or data.table containing the description of all functions found in expr. FunctionCalls returns a data.table with all calls found in expr and Globals a data.table listing all globals variables defined.

Author(s)

Maëlick Claes <himself@maelick.net>


ecos-umons/sourceR documentation built on May 15, 2019, 10:07 p.m.