Skip to contents

Concatenates parent and child function names for a better message, warning, and error tracing.

Usage

validate_arg_function_name(default_name = NULL, function_name = NULL, ...)

Arguments

default_name

(optional, character) Name of the calling function. Default: NULL

function_name

(optional, character) Name of the parent function. Default: NULL

...

(optional) Used to pass function_name within these functions that don't have this argument.

Value

character

Examples

x <- validate_arg_function_name(
  default_name = "child_function",
  function_name = "parent_function"
)

message(x)
#> parent_function
#> └── child_function