Skip to content

Commit

Permalink
R CMD check can only use aspell (#2424)
Browse files Browse the repository at this point in the history
Fixes #2376
  • Loading branch information
hadley authored May 24, 2022
1 parent 322b6b8 commit b5d3534
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# devtools (development version)

* `aspell_env_var()` does a better job of matching R CMD check behaviour,
which is only to use `aspell`, not `hunspell` or `ispell` (#2376).

* Installing devtools now installs pkgdown, profvis, bench, miniUI, DT,
and urlchecker, ensuring that you have everything needed for package
development (#2388).
Expand Down
2 changes: 1 addition & 1 deletion R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ check_env_vars <- function(cran = FALSE, remote = FALSE, incoming = remote,

aspell_env_var <- function() {
tryCatch({
utils::aspell(NULL)
utils::aspell(NULL, program = "aspell")
c("_R_CHECK_CRAN_INCOMING_USE_ASPELL_" = "TRUE")
}, error = function(e) character())
}
Expand Down

0 comments on commit b5d3534

Please sign in to comment.