This document provides a complete overview of the test suite created for the kaefa R package to validate spelling corrections and documentation improvements in the current commit.
- Line 19: Corrected typo "pallelise" → "parallelised" (British English)
- Line 27: Added "Language: en-GB" to specify British English
- inst/WORDLIST: New file containing 90 technical terms for spell checking
- Supports the
spellingR package - Whitelists domain-specific terminology to prevent false positives
- Supports the
Spelling corrections across 6 man files:
- historys → histories
- critera → criteria
- messeages → messages
- avaliable → available
- (saveModelHistory description updated)
- (modelSelectionCriteria description updated)
- Initalize → Initialise
- initalise → initialises
- informaiton → information
- Speicfy → Specify
- combinating → combining
- messeages → messages
- avaliable → available
- critera → criteria
- resarch → research
- statistcal → statistical
- pallelise → parallelised
- devide → divide
Total: 18 spelling corrections
The test suite is organized into the following files (see tests/TEST_SUMMARY.md for details):
| File | Purpose |
|---|---|
| tests/testthat/test-wordlist.R | WORDLIST format and content validation |
| tests/testthat/test-description.R | DESCRIPTION file integrity and spelling checks |
| tests/testthat/test-documentation.R | Documentation spelling and quality checks |
| tests/testthat/test-spelling-comprehensive.R | Comprehensive spelling validation |
| tests/testthat/test-wordlist-integrity.R | Additional WORDLIST edge cases |
| tests/testthat/test-validation-comprehensive.R | Meta-validation of test effectiveness |
Run the full test suite:
library(testthat)
library(kaefa)
test_check("kaefa")Run a specific test file:
test_file("tests/testthat/test-wordlist.R")Run with devtools (optional):
devtools::test()- All tests should pass without failures.
- If the WORDLIST or documentation directories are missing in the installed package, related tests will be skipped with explicit messages.
- Spelling corrections listed above should remain enforced, and documentation should remain consistent with en-GB spelling.
testthat(>= 2.0.0)tools(for Rd parsing and documentation checks)devtoolsis optional for runningdevtools::test()
Reference: tests/TEST_SUMMARY.md contains the detailed test breakdown and spelling correction inventory.