Learn R Programming

wrMisc (version 1.15.3.1)

.composeCallName: 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)

Value

character vector (history of who called whom)

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 ' -> '

See Also

Examples

Run this code
.composeCallName("newFunction", callFrom="initFunction")

Run the code above in your browser using DataLab