Create a custom namespace string.
ns_custom.Rd
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.
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.
See also
Other general:
browser_server()
,
browser_ui()
,
is_shiny.tag()
,
ns_find()
,
path_strip_shiny()
,
path_strip_to()
,
tab_ns_extract()
,
warn_id()
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