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")
spell_check_text(text, ignore = character(), lang = "en_US")
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".
Language
DESCRIPTION
"en-US"
"en-GB"
character vector with plain text
Other spelling: spell_check_package, wordlist
spell_check_package
wordlist
# NOT RUN { # Example files files <- list.files(system.file("examples", package = "knitr"), pattern = "\\.(Rnw|Rmd|html)$", full.names = TRUE) spell_check_files(files) # }
Run the code above in your browser using DataCamp Workspace