Learn R Programming

debug (version 1.3.1)

debug.eval: Evaluate expression in debugging window

Description

Like eval but summons up a debug window, as when debugging a function call. Use it e.g. for debugging your own scriptlets stored as expressions (see also fixr in mvbutils). There are analogous functions debug.evalq, debug.with, debug.within, and debug.try, but currently (and for no particular reason) these are not exported, so you'd need e.g. debug:::debug.with( dataset, commands).

Usage

debug.eval(expr, envir = parent.frame(), enclos = if (is.list(envir) || is.pairlist(envir)) parent.frame() else baseenv())

Arguments

expr, envir, enclos
see eval

See Also

fixr, help for the debug package