Tools for Spell Checking in R

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.


News

2.0

  • spell_check_package() now also checks README.md and NEWS.md in the package root
  • Enforce latest hunspell and libhunspell, which include updated dictionaries
  • Treat all input as UTF-8. Fixes some false positives on Windows
  • Ignore yaml front matter in markdown except for 'title', 'subtitle', and 'description'
  • Markdown: filter words that contain an '@' symbol (citation key or email address)
  • Properly parse [email protected] field for ignore list (issue #2)
  • Use tools::file_ext instead of knitr:::file_ext

1.2

  • Internally normalize all case of lang strings to lower_UPPER e.g en_US
  • Only run automatic check when 'spelling' is available and NOT_CRAN is set

1.1

  • Breaking: Package spell-checker now uses language from DESCRIPTION
  • Require hunspell 2.9 dependency (better parsing and dicationaries)
  • Change default lang to 'en_US'

1.0

  • Initial release

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("spelling")

2.1 by Jeroen Ooms, 8 months ago


https://github.com/ropensci/spelling#readme


Report a bug at https://github.com/ropensci/spelling/issues


Browse source code at https://github.com/cran/spelling


Authors: Jeroen Ooms [cre, aut] , Jim Hester [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports commonmark, xml2, hunspell, knitr

Suggests pdftools


Suggested by CMapViz, ClustImpute, DataPackageR, DealGPL570, EML, EcoNetGen, HaDeX, LexisNexisTools, MODIStsp, MachineLearning, MixMatrix, MtreeRing, PCRedux, PointFore, RNeXML, SDMtune, SWIM, ShiftShareSE, SingleCaseES, SynthTools, adept, adeptdata, alfr, aliases2entrez, arkdb, attenuation, autothresholdr, aweek, bcrypt, beastier, beautier, bigdist, bigreadr, bigstatsr, bigutilsr, broomExtra, brotli, caesar, callr, catchr, ceramic, clifro, clustree, cmsaf, crunch, crunchy, curl, detrendr, devtools, dfadjust, discrim, ds4psy, eechidna, emax.glm, emld, empichar, eulerr, evaluator, exampletestr, exuber, fable, fabletools, fakemake, fastDummies, fbar, fgeo, fgeo.analyze, fgeo.plot, fgeo.tool, fgeo.x, filesstrings, fishtree, flobr, fs, ganalytics, gcite, geometry, getTBinR, ggasym, ggcorrplot, ggdag, ggfittext, ggnormalviolin, ggstatsplot, ggthemes, git2rdata, gitignore, gitlink, glancedata, googlesheets4, grainscape, greta, groupedstats, gtsummary, httptest, hunspell, ihpdr, ijtiff, inplace, insight, invctr, iotables, ivx, jose, jsonld, leaflethex, leiden, magick, matrixNormal, meditations, miWQS, mongolite, nandb, naniar, nationwider, nvctr, outcomerate, pairwiseComparisons, partition, pdqr, perccalc, physiology, piggyback, pivotaltrackR, polylabelr, predictrace, prioGene, protolite, psymonitor, qualpalr, quanteda, rde, rdflib, readr, redland, riskyr, rmangal, rmdfiltr, rmdplugr, rstanemax, rstatix, rsvg, runstats, rvest, rwhatsapp, sen2r, shinyEventLogger, shinyTime, spacyr, spdplyr, ssh, stapler, statsExpressions, stm, stopwords, strex, suddengains, sys, tdigest, tesseract, tfautograph, tidyUSDA, tor, tracerer, traipse, trip, tsibble, tsmp, tvthemes, umx, unikn, usethis, vapour, vegawidget, virtuoso, visdat, vroom, workflowr, writexl, yatah, ymlthis.


See at CRAN