powered by
Basically a wrapper for gsub() to sanitize a string for DiagrammeR
gsub()
sanitize_for_DiagrammeR( x, regExReplacements = justifier::opts$get("regExReplacements") )
The sanitized character vector
The string or vector
A list of two-element character vectors; first element should be the element to search, and the second element, the replacement.
justifier::sanitize_for_DiagrammeR("This is or isn't problematic");
Run the code above in your browser using DataLab