diff --git a/R/spell-check.R b/R/spell-check.R index b8795c0..b240725 100644 --- a/R/spell-check.R +++ b/R/spell-check.R @@ -151,7 +151,7 @@ spell_check_setup <- function(pkg = ".", vignettes = TRUE, lang = "en-US", error update_description(pkg, lang = lang) update_wordlist(pkg, vignettes = vignettes) dir.create(file.path(pkg$path, "tests"), showWarnings = FALSE) - writeLines(sprintf("if(requireNamespace('spelling', quietly = TRUE)) + writeLines(sprintf("if (requireNamespace(\"spelling\", quietly = TRUE)) spelling::spell_check_test(vignettes = %s, error = %s, skip_on_cran = TRUE)", deparse(vignettes), deparse(error)), file.path(pkg$path, "tests/spelling.R")) diff --git a/inst/WORDLIST b/inst/WORDLIST index 09407f5..7ffa658 100644 --- a/inst/WORDLIST +++ b/inst/WORDLIST @@ -3,7 +3,11 @@ CMD devtools hunspell pkg +Parsers rmd rnw +whitelist +wordlist +WORDLIST RStudio yaml diff --git a/tests/spelling.R b/tests/spelling.R index 5444693..9a7178e 100644 --- a/tests/spelling.R +++ b/tests/spelling.R @@ -1 +1 @@ -spelling::spell_check_test(vignettes = TRUE, error = FALSE) +spelling::spell_check_test(vignettes = TRUE, error = TRUE, skip_on_cran = TRUE)