ropensci / spelling

Tools for Spell Checking in R
https://docs.ropensci.org/spelling
Other
107 stars 25 forks source link

Exclude specific files from spell check similar to a `.gitignore` file #63

Open stufield opened 2 years ago

stufield commented 2 years ago

Similar to the white listed WORDLIST file, but exclude an entire file, similar to a .gitignore or .lintr. The use case I have is a single foo.Rd file has 100s of failing words (gene sequence definitions) that are valid in that context, but I do not want to bloat the WORDLIST with these idiosyncratic, highly specific set of words that are unique to foo.Rd.

Function use cases:

spelling::spell_check_package()
spelling::spell_check_files()

Best case scenario is this is already possible and I've simply missed it. Thx!

MLopez-Ibanez commented 1 year ago

By default, it should ignore everything ignored by .Rbuildignore in particular, backup files '*~'.