Learn R Programming

debug (version 1.2.2)

step.into.sysfuns: Set or get options for which "special" functions get stepped into, when in step-mode.

Description

When the debug package is in step-mode, there are a few special system functions that it can either step into, or leave the system to handle en bloc. These functions all have expression-type arguments. Currently, they are: try, with (for data.frames only), eval, and evalq; within can be handled via mtrace( within), so is not "special" here. The step-into behaviour is controlled by calling step.into.sysfuns, which operates like par. You can also circumvent step-into at particular lines, by using go(n) to zoom through to the next statement.

Usage

# USAGE is not useful here-- see *Arguments*
step.into.sysfuns( ...)

Arguments

...
tag-value pairs of logicals, e.g. with=TRUE, evalq=FALSE. Legal tags are shown in DESCRIPTION. If empty, return all tags-value pairs, as a logical vector.

Value

  • Either the previous value(s) of tags that are set, or the entire logical vector of tags.

Examples

Run this code
step.into.sysfuns() # all of them-- shows which are legal
step.into.sysfuns()['with'] # extract one of them
owith <- step.into.sysfuns( with=FALSE) # don't step into with-statements
step.into.sysfuns( with=owith) # revert to previous

Run the code above in your browser using DataLab