diff --git a/.github/workflows/check-spelling.yaml b/.github/workflows/check-spelling.yaml new file mode 100644 index 0000000..746aba5 --- /dev/null +++ b/.github/workflows/check-spelling.yaml @@ -0,0 +1,23 @@ +--- +name: Spellcheck + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + check: + runs-on: ubuntu-latest + name: Spellcheck + container: + image: rocker/tidyverse:4.1.2 + steps: + - name: Checkout repo + uses: actions/checkout@v3 + + - name: Run Spelling Check test + uses: insightsengineering/r-spellcheck-action@v3.0.2 diff --git a/DESCRIPTION b/DESCRIPTION index 8fac631..31bf2f8 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -46,7 +46,9 @@ Suggests: parameters, plotly, survminer, - tidyr + tidyr, + spelling RoxygenNote: 7.3.2 License: MIT + file LICENSE Config/build/copy-method: link +Language: en-US diff --git a/inst/WORDLIST b/inst/WORDLIST new file mode 100644 index 0000000..487452e --- /dev/null +++ b/inst/WORDLIST @@ -0,0 +1,15 @@ +Biostat +Epi +Github +Hua +MathJax +NoDerivatives +NonCommercial +ORCID +Rocke +UC +Zhou +demstats +github +iteratively +qmd diff --git a/tests/spelling.R b/tests/spelling.R new file mode 100644 index 0000000..6713838 --- /dev/null +++ b/tests/spelling.R @@ -0,0 +1,3 @@ +if(requireNamespace('spelling', quietly = TRUE)) + spelling::spell_check_test(vignettes = TRUE, error = FALSE, + skip_on_cran = TRUE)