get.retval: Show current return value when debugging

Description Usage Details Author(s) See Also

Description

When debugging a function, get.retval gives the current return value, i.e. the result of the most recent valid statement executed in the function body, whether typed or in the original code, and excluding calls to go etc.. Presumably only relevant when in exit code.

Usage

1

Details

To change the return value while in exit code, use skip to move back into the function code, then return(whatever).

Author(s)

Mark Bravington

See Also

skip, go, last.try.error



Search within the debug package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.