load_traces {typetracer}R Documentation

Load traces of parameter types

Description

Load traces of parameter types

Usage

load_traces(files = FALSE, quiet = FALSE)

Arguments

files

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

quiet

If FALSE, issue message when no traces found.

Value

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

Examples

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 ()

[Package typetracer version 0.2.2 Index]