Learn R Programming

justifier (version 0.2.6)

sanitize_for_DiagrammeR: 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")
)

Value

The sanitized character vector

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.

Examples

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

Run the code above in your browser using DataLab