The R Project SVN R

Rev

Rev 74186 | Rev 82518 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 74186 Rev 74363
Line 86... Line 86...
86
    actually occur (used, for example, by debugging functions to shut
86
    actually occur (used, for example, by debugging functions to shut
87
    off tracing during debugging).}
87
    off tracing during debugging).}
88
  \item{expr, msg}{arguments to the support function \code{.doTrace}, calls to
88
  \item{expr, msg}{arguments to the support function \code{.doTrace}, calls to
89
    which are inserted into the modified function or method:
89
    which are inserted into the modified function or method:
90
    \code{expr} is the tracing action (such as a call to
90
    \code{expr} is the tracing action (such as a call to
91
    \code{browser()}, and \code{msg} is a string identifying the
91
    \code{browser()}), and \code{msg} is a string identifying the
92
    place where the trace action occurs.
92
    place where the trace action occurs.
93
  }
93
  }
94
  \item{default}{If \code{returnValue} finds no return value (e.g.
94
  \item{default}{If \code{returnValue} finds no return value (e.g.
95
    a function exited because of an error, restart or as a result
95
    a function exited because of an error, restart or as a result
96
    of evaluating a return from a caller function), it will return
96
    of evaluating a return from a caller function), it will return
Line 126... Line 126...
126
  this case you probably want to supply \code{print = FALSE} in the call
126
  this case you probably want to supply \code{print = FALSE} in the call
127
  to \code{trace} also).
127
  to \code{trace} also).
128
 
128
 
129
  When the \code{at} argument is supplied, it can be a vector of
129
  When the \code{at} argument is supplied, it can be a vector of
130
  integers referring to the substeps of the body of the function (this
130
  integers referring to the substeps of the body of the function (this
131
  only works if the body of the function is enclosed in \code{{ ...}}.  In
131
  only works if the body of the function is enclosed in \code{{ ...}}).  In
132
  this case \code{tracer} is \emph{not} called on entry, but instead
132
  this case \code{tracer} is \emph{not} called on entry, but instead
133
  just before evaluating each of the steps listed in \code{at}.  (Hint:
133
  just before evaluating each of the steps listed in \code{at}.  (Hint:
134
  you don't want to try to count the steps in the printed version of a
134
  you don't want to try to count the steps in the printed version of a
135
  function; instead, look at \code{as.list(body(f))} to get the numbers
135
  function; instead, look at \code{as.list(body(f))} to get the numbers
136
  associated with the steps in function \code{f}.)
136
  associated with the steps in function \code{f}.)