Classes Used Internally to Control Tracing
The classes described here are used by the R function
trace to create versions of functions and methods
including browser calls, etc., and also to
1 2 3 4 5 6 7 8 9 10 11 12 13 14
### Objects from the following classes are generated ### by calling trace() on an object from the corresponding ### class without the "WithTrace" in the name. "functionWithTrace" "MethodDefinitionWithTrace" "MethodWithNextWithTrace" "genericFunctionWithTrace" "groupGenericFunctionWithTrace" ### the following is a virtual class extended by each of the ### classes above "traceable"
Objects from the Class
Objects will be created from these classes by calls to
(There is an
initialize method for class
"traceable", but you are unlikely to need it directly.)
The data part, which will be
"functionWithTrace", and similarly for the other classes.
Object of the original class; e.g.,
Each of the classes extends the corresponding untraced class, from the
data part; e.g.,
Each of the specific classes extends
"VIRTUAL", by class
The point of the specific classes is that objects generated from them,
trace(), remain callable or dispatchable, in
addition to their new trace information.