spelling (version 1.0)

spell_check_files: Spell Check

Description

Perform a spell check on document files or plain text.

Usage

spell_check_files(path, ignore = character(), lang = "en_GB")

spell_check_text(text, ignore = character(), lang = "en_GB")

Arguments

path

path to file or to spell check

ignore

character vector with words which will be added to the hunspell::dictionary

lang

dictionary string for hunspell, usually either "en_US" or "en_GB".

text

character vector with plain text

See Also

Other spelling: spell_check_package, wordlist

Examples

Run this code
# 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