Learn R Programming

pkgmaker (version 0.32.10)

sys_call_stack: System Call Stack Utilities

Description

System Call Stack Utilities

Usage

sys.function_digest(n = NULL)

sys.function_nframe(fun)

sys.function_frame(fun)

sys.source_file()

Value

  • sys.function_digest returns a character vector of length n.

  • sys.function_nframe returns a integer vector.

  • sys.function_frame returns an environment.

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.