Learn R Programming

reportRmd (version 0.1.1)

sanitizestr: Sanitizes strings to not break LaTeX

Description

Strings with special characters will break LaTeX if returned 'asis' by knitr. This happens every time we use one of the main reportRmd functions. We first sanitize our strings with this function to stop LaTeX from breaking.

Usage

sanitizestr(str)

Arguments

str

a vector of strings to sanitize