Check dashes entered as hyphens
check_dashes(
filename,
.report_error,
dash.consistency = c("en-dash", "em-dash"),
protases_ok = TRUE,
rstudio = TRUE
)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 $...$.
A tex or Rnw file.
How errors should be reported.
Character vector permitted dash types.
(logical, default: TRUE) Should em-dashes be permitted when
they form a protasis in a list? \item when there is an emdash---always.
(logical, default: TRUE) Use the RStudio API?