trace_failures: Trace the failing objects of a function

Description Usage Arguments Value

View source: R/trace_failures.R

Description

Trace back the manipulations of object inputs to a function

Usage

1
trace_failures(fun, args, drop_unchanged_args = FALSE)

Arguments

fun

The function to trace.

args

An optional list of argument names to trace - by default, all arguments are traced throughout the function.

drop_unchanged_args

Whether arguments that stay constant should be returned. defaults to **FALSE**.

Value

A list of all the objects that existed within the function environment, including the line numbers denoting the lines where the changes happened, or a full trace of all of the changes to arguments throughout the function (if drop_unchanged_args is set to **TRUE**).


JSzitas/recovery documentation built on April 3, 2021, 3:16 p.m.