Learn R Programming

loggit2 (version 2.4.0)

call_2_string: Convert Call to String

Description

Converts a call object to a string and optionally determines the full call stack.

Usage

call_2_string(call, full_stack = FALSE, default_cutoff = 4L)

Value

Deparsed call as string.

Arguments

call

Call object.

full_stack

Include the full call stack?

default_cutoff

Number of calls to cut from the end of the call stack if no matching call is found.

Details

The full call stack can only be determined if the call is in the current context. The default cutoff is 4 because the only known case is an primitive error in with_loggit() which adds 4 calls to the stack.