This help topic is for R version 0.60. For the current version of R, try https://stat.ethz.ch/R-manual/R-patched/library/base/html/trace.html
trace {base}R Documentation

Trace all calls to a function.

Description

These are both in very primitive form. If 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 untrace.

Usage

trace(fun)
untrace(fun)

Arguments

fun

any interpreted R function (not quoted).

See Also

debug.

Examples

trace(names)
data.frame(x=1:2, y=3:4)
untrace(names)

[Package base version 0.60 ]