Skip to content

Commit a6f7bb1

Browse files
maellejeroen
authored andcommitted
Fix sorting bug (I think) (#31)
1 parent e1d2646 commit a6f7bb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/spell-check.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ spell_check_package <- function(pkg = ".", vignettes = TRUE, use_wordlist = TRUE
5151
dict <- hunspell::dictionary(lang, add_words = sort(ignore))
5252

5353
# Check Rd manual files
54-
rd_files <- list.files(file.path(pkg$path, "man"), "\\.rd$", ignore.case = TRUE, full.names = TRUE)
55-
rd_lines <- lapply(sort(rd_files), spell_check_file_rd, dict = dict)
54+
rd_files <- sort(list.files(file.path(pkg$path, "man"), "\\.rd$", ignore.case = TRUE, full.names = TRUE))
55+
rd_lines <- lapply(rd_files, spell_check_file_rd, dict = dict)
5656

5757
# Check 'DESCRIPTION' fields
5858
pkg_fields <- c("title", "description")

0 commit comments

Comments
 (0)