\Header{trace}{Trace all calls to a function.}
\alias{untrace}{trace}
\keyword{programming}{trace}
\begin{Usage}
\begin{verbatim}
trace(fun)
untrace(fun)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\texttt{fun}] any interpreted \R\ function (not quoted).
\end{ldescription}
\end{Arguments}
\begin{Description}
These are both in very primitive form.
If \texttt{trace} is called the function named is marked and each time it
is entered the call is printed on the console.
To stop tracing a function use \texttt{untrace}.\end{Description}
\begin{SeeAlso}
\texttt{\Link{debug}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
trace(names)
data.frame(x=1:2, y=3:4)
untrace(names)
\end{ExampleCode}
\end{Examples}

