Learn R Programming

typetracer (version 0.2.3)

load_traces: Load traces of parameter types

Description

Load traces of parameter types

Usage

load_traces(files = FALSE, quiet = FALSE)

Value

A 'data.frame' of traces, including names of functions and parameters, and values of each parameter traced in both unevaluated and evaluated forms.

Arguments

files

If TRUE, return paths to all temporary files holding trace data.

quiet

If FALSE, issue message when no traces found.

Examples

Run this code
f <- function (x, y, z, ...) {
    x * x + y * y
}
inject_tracer (f)
val <- f (1:2, 3:4 + 0., a = "blah")
x <- load_traces ()
print (x)

# Traces should always be "uninjected":
uninject_tracer (f)
# Traces may also be removed:
clear_traces ()

Run the code above in your browser using DataLab