sanitize_for_DiagrammeR: Sanitize for DiagrammeR

View source: R/sanitize_for_DiagrammeR.R

sanitize_for_DiagrammeRR Documentation

Sanitize for DiagrammeR

Description

Basically a wrapper for gsub() to sanitize a string for DiagrammeR

Usage

sanitize_for_DiagrammeR(
  x,
  regExReplacements = justifier::opts$get("regExReplacements")
)

Arguments

x

The string or vector

regExReplacements

A list of two-element character vectors; first element should be the element to search, and the second element, the replacement.

Value

The sanitized character vector

Examples

justifier::sanitize_for_DiagrammeR("This is or isn't problematic");

justifier documentation built on March 7, 2023, 6:59 p.m.