System Call Stack Utilities

sys.function_digest(n = NULL)

sys.function_nframe(fun)

sys.function_frame(fun)

sys.source_file()

Arguments

n

a single frame

fun

the function object to find in the call stack.

Functions

  • sys.function_digest: computes digest hash for each function in the call stack.

  • sys.function_nframe: returns the index of the frame that calls a given function.

  • sys.function_frame: returns the frame that calls a given function.

  • sys.source_file: returns path to the script that is being sourced either by base::source or base::sys.source.