Performs a spell check on RMarkdown files ignoring some exams
keywords using spelling::spell_check_files()
.
spell(
path,
ignore = c("Meta", "information", "extype", "num", "mchoice", "schoice", "Solution",
"exsolution", "extol", "exname", "Question", "align", "begin", "bigg", "cases",
"cdot", "end", "frac", "infty", "int", "left", "left.", "leq", "mu", "qquad",
"right", "sum", "text", "vert"),
lang = Sys.getenv("LANG")
)rm_spell_check(
path,
ignore = c("Meta", "information", "extype", "num", "mchoice", "schoice", "Solution",
"exsolution", "extol", "exname", "Question", "align", "begin", "bigg", "cases",
"cdot", "end", "frac", "infty", "int", "left", "left.", "leq", "mu", "qquad",
"right", "sum", "text", "vert"),
lang = Sys.getenv("LANG")
)
A data frame with problematic words.
path to file or to spell check
character vector with words which will be added to the hunspell::dictionary
set Language
field in DESCRIPTION
e.g. "en-US"
or "en-GB"
.
For supporting other languages, see the hunspell vignette.