stack2funs: Reduce the Call Stack to Just a Vector of Function Names

View source: R/callers.R

stack2funsR Documentation

Reduce the Call Stack to Just a Vector of Function Names

Description

Reduce the Call Stack to Just a Vector of Function Names

Usage

stack2funs(stack)

Arguments

stack

A character vector.

Value

A character vector.

See Also

Other utils: check_valid(), combo2props(), meets_errs(), spec2combos(), spec2props()

Examples

egStack2Funs <- function() {
  egStack2FunsF <- function() {
    stack <- uj::callers()
    uj::stack2funs(stack)
  }
  egStack2FunsE <- function() {egStack2FunsF()}
  egStack2FunsD <- function() {egStack2FunsE()}
  egStack2FunsC <- function() {egStack2FunsD()}
  egStack2FunsB <- function() {egStack2FunsC()}
  egStack2FunsA <- function() {egStack2FunsB()}
  egStack2FunsA()
}
egStack2Funs()

j-martineau/uj documentation built on Sept. 14, 2024, 4:40 a.m.