Skip to content

Commit

Permalink
Add advice to update_wordlist()
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jan 30, 2024
1 parent 92fbeb7 commit 1734c44
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/spell-check.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,11 @@ spell_check_test <- function(vignettes = TRUE, error = FALSE, lang = NULL, skip_
if(nrow(results)){
if(isTRUE(error)){
output <- sprintf("Potential spelling errors: %s\n", paste(results$word, collapse = ", "))
stop(output, call. = FALSE)
stop(output, "\n", "If these are false positive, run `spelling::update_wordlist()`.", call. = FALSE)
} else {
cat("Potential spelling errors:\n")
print(results)
cat("If these are false positive, run `spelling::update_wordlist()`.")
}
}
cat("All Done!\n")
Expand Down

0 comments on commit 1734c44

Please sign in to comment.