dot-composeCallName: Compose sequence of (function-)calls

.composeCallNameR Documentation

Compose sequence of (function-)calls

Description

This function was designed for tracing the hierarchy of function-calls. It allows to remove any tailing space or ': ' from 'callFrom' (character vector) and return with added 'newNa' (+ 'add2Tail')

Usage

.composeCallName(newNa, add2Head = "", add2Tail = " : ", callFrom = NULL)

Arguments

newNa

(character vector) main input

add2Head

(character)

add2Tail

(character)

callFrom

(character) may also contain multiple separate names (ie length >1), will be concatenated using ' -> '

Value

character vector (history of who called whom)

See Also

paste

Examples

.composeCallName("newFunction", callFrom="initFunction")

wrMisc documentation built on Nov. 17, 2023, 5:09 p.m.