Skip to contents

Useful for referencing objects nested in adjacent modules

Usage

ns_custom(levels, add = NULL, .ns = ns_find())

Arguments

levels

num indicating what segments of the namespace to keep.

add

chr segments to append to the result

.ns

fun ns function. Typically found automatically.

Value

chr The custom namespace string

Details

No - can be used in user supplied namespace names as this is the separator shiny uses to separate namespace sections and is how this function splits apart sections.

Examples

.ns <- function(x) paste0("body-vulnerability-vuln_num_summary-vuln_summary_nums", "-", x)
ns_custom(-2, add = "blah", .ns = .ns)
#> body-vulnerability-vuln_num_summary-blah