trace_calls: trace each call with a srcref attribute

Description Usage Arguments Value See Also

Description

This function calls itself recursively so it can properly traverse the AST.

Usage

1
trace_calls(x, parent_functions = NULL, parent_ref = NULL)

Arguments

x

the call

parent_functions

the functions which this call is a child of.

parent_ref

argument used to set the srcref of the current call when recursing

Value

a modified expression with count calls inserted before each previous call.

See Also

http://adv-r.had.co.nz/Expressions.html



Search within the covr package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.