Extracts diagnostic messages from a package and checks them for spelling errors.
spell_check_msgs(dict = "en_US", pkg = ".")
The directory of an R package to extract diagnostic messages from. Path is passed to
Extracts diagnostic messages from a package and processes them using
hunspell to check for possible spelling mistakes.
A data frame containing each message with a potentially misspelled word, the misspelled word, and the source code file in which the message is located, and (for each word) a list of suggested corrections. If no words are misspelled, a data frame with zero rows.
Thomas J. Leeper
1 2 3 4 5 6
## Not run: # Not run since it takes too long pkg <- extract_example_pkg() spell_check_msgs(pkg) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.