1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/trace_calls.R
\name{trace_calls}
\alias{trace_calls}
\title{trace each call with a srcref attribute}
\usage{
trace_calls(x, parent_functions = NULL, parent_ref = NULL)
}
\arguments{
\item{x}{the call}
\item{parent_functions}{the functions which this call is a child of.}
\item{parent_ref}{argument used to set the srcref of the current call during
the recursion.}
}
\value{
a modified expression with count calls inserted before each previous
call.
}
\description{
This function calls itself recursively so it can properly traverse the AST.
}
\seealso{
\url{http://adv-r.had.co.nz/Expressions.html}
}
\keyword{internal}
|