View source: R/check_escapes.R
check_escapes | R Documentation |
Checks file for unescaped dollar signs.
With these present, there is a risk of constructions like We gave $10 to a million people at a cost of $10~million dollars.
,
which is valid syntax, but incorrectly formatted. Accordingly, math-mode must be more assertively requested using \(..\)
.
check_escapes(filename, .report_error)
filename |
File in which to report the error |
.report_error |
How the errors should be reported. |
An error if unescaped dollar signs are present in filename
. Otherwise, NULL
invisibly.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.