check_dashes | R Documentation |
Check dashes entered as hyphens
check_dashes(
filename,
.report_error,
dash.consistency = c("en-dash", "em-dash"),
protases_ok = TRUE,
rstudio = TRUE
)
filename |
A tex or Rnw file. |
.report_error |
How errors should be reported. |
dash.consistency |
Character vector permitted dash types. |
protases_ok |
(logical, default: |
rstudio |
(logical, default: |
File stops and cat()
s on any line where a hyphen is surrounded by a space.
Excludes dashes in knitr chunks and LaTeX math mode \(...\)
but not in TeX math mode $...$
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.