Skip to contents

Controlled via the RSERVETS_DEBUG environment variable. Set to * for all tags, or a comma-separated list of tags: widget, ocap, init, state, child.

Examples

withr::with_envvar(
    c(RSERVETS_DEBUG = "*"),
    {
        rts_debug_enabled("widget")
    }
)
#> [1] TRUE
withr::with_envvar(
    c(RSERVETS_DEBUG = "widget,child,init"),
    {
        rts_debug_enabled("child")
    }
)
#> [1] TRUE
withr::with_envvar(
    c(RSERVETS_DEBUG = ""),
    {
        rts_debug_enabled()
    }
)
#> [1] FALSE