sanitize_for_DiagrammeR: Sanitize for DiagrammeR

Description Usage Arguments Value Examples

View source: R/sanitize_for_DiagrammeR.R

Description

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

Usage

1
2
3
4
sanitize_for_DiagrammeR(
  x,
  regExReplacements = list(c("\\\"", "`"), c("\\'", "`"), c("\\\\", "/"))
)

Arguments

x

The string or vector

regExReplacements

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

Value

The sanitized character vector

Examples

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

Matherion/justifier documentation built on Dec. 31, 2020, 3:13 p.m.