Skip to content

Commit f7c3f0d

Browse files
committed
fix: resolve spell-check workflow invalid argument error
Replaces spell_check_package(error=TRUE) with explicit check-and-stop pattern since the error argument is not supported in spelling::spell_check_package().
1 parent 38e85e3 commit f7c3f0d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/spell-check.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,10 @@ jobs:
2626
needs: check
2727

2828
- name: Spell check
29-
run: spelling::spell_check_package(error = TRUE)
29+
run: |
30+
results <- spelling::spell_check_package()
31+
if (nrow(results) > 0) {
32+
print(results)
33+
stop("Spelling errors found. Add words to inst/WORDLIST if intentional.")
34+
}
3035
shell: Rscript {0}

0 commit comments

Comments
 (0)