Package spelling. December 18, 2017

Similar documents
Package datasets.load

Package slickr. March 6, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package available. November 17, 2017

Package repec. August 31, 2018

Package docxtools. July 6, 2018

Package ezknitr. September 16, 2016

Package jstree. October 24, 2017

Package fastdummies. January 8, 2018

Package liftr. R topics documented: May 14, Type Package

Package SEMrushR. November 3, 2018

Package canvasxpress

Package tm.plugin.lexisnexis

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package pdfsearch. July 10, 2018

Package messaging. May 27, 2018

Package pkgbuild. October 16, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package hyphenatr. August 29, 2016

Package spark. July 21, 2017

Package robotstxt. November 12, 2017

Package semver. January 6, 2017

Package modules. July 22, 2017

Package validara. October 19, 2017

Package ssh. June 4, 2018

Package websearchr. R topics documented: October 23, 2018

Package geniusr. December 6, 2017

Package projector. February 27, 2018

Package gtrendsr. October 19, 2017

Package pkgload. July 8, 2018

Package wikitaxa. December 21, 2017

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package fastqcr. April 11, 2017

Package ECctmc. May 1, 2018

Package githubinstall

Package WordR. September 7, 2017

Package statsdk. September 30, 2017

Package texpreview. August 15, 2018

Package goodpractice

Package calpassapi. August 25, 2018

Package desc. May 1, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package rzeit2. January 7, 2019

Package internetarchive

Package datapasta. January 24, 2018

Package rcmdcheck. R topics documented: November 10, 2018

Package knitrbootstrap

Package plumber. December 2, 2017

Package dbx. July 5, 2018

Package knitrprogressbar

Package gtrendsr. August 4, 2018

Package facerec. May 14, 2018

Package epitab. July 4, 2018

Package patentsview. July 12, 2017

Package bisect. April 16, 2018

Package msgtools. March 2, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package fitbitscraper

Package styler. December 11, Title Non-Invasive Pretty Printing of R Code Version 1.0.0

Package htmlwidgets. February 25, 2016

Package d3plus. September 25, 2017

Package BiocManager. November 13, 2018

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package loggit. April 9, 2018

Package pinyin. October 17, 2018

Package SASmarkdown. R topics documented: November 30, Version Date Title 'SAS' Markdown

Package sessioninfo. June 21, 2017

Package workflowr. July 6, 2018

Package tm.plugin.factiva

Package R.rsp. January 11, 2018

Package ecoseries. R topics documented: September 27, 2017

Package kirby21.base

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package htmlwidgets. July 10, 2017

Package barcoder. October 26, 2018

Package radix. September 17, 2018

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package jpmesh. December 4, 2017

Package tm.plugin.factiva

Package kdtools. April 26, 2018

Package remotes. December 21, 2017

Package GetoptLong. June 10, 2018

Package librarian. R topics documented:

Package covr. October 18, 2018

Package memoise. April 21, 2017

Package oec. R topics documented: May 11, Type Package

Package triebeard. August 29, 2016

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package meme. December 6, 2017

Package deductive. June 2, 2017

Package rsppfp. November 20, 2018

Package vdiffr. April 27, 2018

Package IATScore. January 10, 2018

Package clipr. June 23, 2018

Package haplor. November 1, 2017

Package opencage. January 16, 2018

Package editdata. October 7, 2017

Package shiny.semantic

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Transcription:

Title Tools for Spell Checking in R Version 1.1 Package spelling December 18, 2017 Spell checking common document formats including latex, markdown, manual pages, and description files. Includes utilities to automate checking of documentation and vignettes as a unit test during 'R CMD check'. Both British and American English are supported out of the box and other languages can be added. In addition, packages may define a 'wordlist' to allow custom terminology without having to abuse punctuation. License MIT + file LICENSE Encoding UTF-8 LazyData true URL https://github.com/ropensci/spelling#readme BugReports https://github.com/ropensci/spelling/issues Imports commonmark, xml2, hunspell (>= 2.9), knitr Suggests pdftools RoxygenNote 6.0.1.9000 Language en-gb NeedsCompilation no Author Jeroen Ooms [cre, aut], Jim Hester [aut] Maintainer Jeroen Ooms <jeroen@berkeley.edu> Repository CRAN Date/Publication 2017-12-18 16:29:13 UTC R topics documented: parse_text.......................................... 2 spell_check_files...................................... 2 spell_check_package.................................... 3 wordlist........................................... 4 Index 5 1

2 spell_check_files parse_text Text Parsers Parse text from various formats and return a data frame with text lines and position in the source document. parse_text_md(path, extensions = TRUE) path extensions markdown file render markdown extensions? Passed to commonmark spell_check_files 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 ignore lang text 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". character vector with plain text Other spelling: spell_check_package, wordlist Examples # Example files files <- list.files(system.file("examples", package = "knitr"), pattern = "\\.(Rnw Rmd html)$", full.names = TRUE) spell_check_files(files)

spell_check_package 3 spell_check_package Package Spell Checking Automatically spell-check package description, documentation, and vignettes. spell_check_package(pkg = ".", vignettes = TRUE, use_wordlist = TRUE) spell_check_setup(pkg = ".", vignettes = TRUE, lang = "en-us", error = FALSE) pkg vignettes use_wordlist lang error path to package root directory containing the DESCRIPTION file also check all rmd and rnw files in the pkg vignettes folder ignore words in the package WORDLIST file set Language field in DESCRIPTION e.g. "en-us" or "en-gb". should CMD check fail if spelling errors are found? Default only prints results. Details Parses and checks R manual pages, rmd/rnw vignettes, and text fields in the package DESCRIPTION file. The preferred spelling language (typically en-gb or en-us) should be specified in the Language field from your package DESCRIPTION. To whitelist custom words use the package WORDLIST file which will be added to the dictionary when spell checking. See update_wordlist to automatically populate and update this file. The spell_check_setup function adds a unit test to your package which automatically runs a spell check on documentation and vignettes during R CMD check. By default this unit test never fails; it merely prints potential spelling errors to the console. Hunspell includes dictionaries for en_us and en_gb by default. Other languages require installation of a custom dictionary, see hunspell for details. Other spelling: spell_check_files, wordlist

4 wordlist wordlist The WORDLIST file The package wordlist file is used to allow custom words which will be added to the dictionary when spell checking. It is stored in inst/wordlist in the source package and must contain one word per line in UTF-8 encoded text. update_wordlist(pkg = ".", vignettes = TRUE, confirm = TRUE) get_wordlist(pkg = ".") pkg vignettes confirm path to package root directory containing the DESCRIPTION file also check all rmd and rnw files in the pkg vignettes folder show changes and ask confirmation before adding new words to the list Details The update_wordlist function runs a full spell check on a package, shows the results, and then prompts to add the found words to the package wordlist. Obviously you should check closely that these legitimate words and not actual spelling errors. It also removes words from the wordlist that no longer appear as spelling errors, either because they have been removed from the documentation or added to the lang dictionary. Other spelling: spell_check_files, spell_check_package

Index commonmark, 2 get_wordlist (wordlist), 4 hunspell, 3 hunspell::dictionary, 2 parse_text, 2 parse_text_md (parse_text), 2 spell_check_files, 2, 3, 4 spell_check_package, 2, 3, 4 spell_check_setup, 3 spell_check_setup (spell_check_package), 3 spell_check_test (spell_check_package), 3 spell_check_text (spell_check_files), 2 spelling (spell_check_package), 3 update_wordlist, 3, 4 update_wordlist (wordlist), 4 WORDLIST, 3 wordlist, 2, 3, 4 5