Spell Check
Perform a spell check on document files or plain text.
spell_check_files(path, ignore = character(), lang = "en_US") spell_check_text(text, ignore = character(), lang = "en_US")
path |
path to file or to spell check |
ignore |
character vector with words which will be added to the hunspell::dictionary |
lang |
set |
text |
character vector with plain text |
This function parses a file based on the file extension, and checks only text fields while ignoring code chunks and meta data. It works particularly well for markdown, but also latex, html, xml, pdf, and plain text are supported.
For more information about the underlying spelling engine, see the hunspell package.
Other spelling: spell_check_package()
,
wordlist
# Example files files <- list.files(system.file("examples", package = "knitr"), pattern = "\\.(Rnw|Rmd|html)$", full.names = TRUE) spell_check_files(files)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.