The function behind the RegExplain Selection and RegExplain File addins. Opens the RegExplain gadget interface in an RStudio viewer pane.
regex_gadget(text = NULL, start_page = if (is.null(text)) "Text" else
"RegEx")
Text to explore in gadget (editable using interface)
Open gadget to this tab, one of "Text"
, "RegEx"
,
"Output"
, or "Help"