Skip to content

Commit

Permalink
spellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
d-morrison committed Dec 12, 2024
1 parent c931b1c commit b1453d7
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/check-spelling.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 15 additions & 0 deletions inst/WORDLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Biostat
Epi
Github
Hua
MathJax
NoDerivatives
NonCommercial
ORCID
Rocke
UC
Zhou
demstats
github
iteratively
qmd
3 changes: 3 additions & 0 deletions tests/spelling.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if(requireNamespace('spelling', quietly = TRUE))
spelling::spell_check_test(vignettes = TRUE, error = FALSE,
skip_on_cran = TRUE)

0 comments on commit b1453d7

Please sign in to comment.