Skip to content

Commit 167d568

Browse files
Merge pull request #405 from lorenzwalthert/issue-404
Ensure sorting is case insensitive
2 parents dde003c + 42390e9 commit 167d568

File tree

2 files changed

+57
-52
lines changed

2 files changed

+57
-52
lines changed

inst/WORDLIST

Lines changed: 51 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,69 @@
1-
ae
21
Affero
2+
Averick
3+
CLI
4+
CMD
5+
Ctrl
6+
EOF
7+
Ei
8+
Eic
9+
Gitlab
10+
Homebrew
11+
IssueHunt
12+
KernSmooth
13+
Ko
14+
LF
15+
Liberapay
16+
Lifecycle
17+
MERCHANTABILITY
18+
Otechie
19+
Patreon
20+
RData
21+
RSMP
22+
RStudio
23+
Rbuildignore
24+
Rdata
25+
Rds
26+
Renviron
27+
Resubmission
28+
Rhistory
29+
Rnw
30+
RoxygenNote
31+
Rprofile
32+
Rproj
33+
Rr
34+
Rscript
35+
SHA
36+
Sublicensing
37+
Sys
38+
SystemRequirements
39+
Tidelift
40+
UCRT
41+
Uninstallation
42+
Unstaged
43+
Upvote
44+
VignetteBuilder
45+
WIPO
46+
Walthert
47+
Za
48+
ae
349
api
450
appveyor
551
arg
652
args
753
artific
854
autoupdate
9-
Averick
1055
bd
1156
beaefa
1257
behaviour
1358
bliblablupp
1459
cfe
1560
ci
1661
cli
17-
CLI
1862
cmd
19-
CMD
2063
codemeta
2164
codemetar
2265
codetools
66+
comit
2367
commandArgs
2468
comparator
2569
conda
@@ -29,25 +73,21 @@ copyrightable
2973
cp
3074
cran
3175
csv
32-
Ctrl
3376
dcf
3477
deps
3578
desc
3679
dev
3780
dir
3881
dirname
82+
docType
3983
docopt
4084
docsearch
41-
docType
4285
dontrun
4386
donttest
44-
Ei
45-
Eic
4687
elif
4788
emph
4889
entrypoint
4990
env
50-
EOF
5191
eval
5292
exlucded
5393
fi
@@ -60,11 +100,9 @@ getwd
60100
gh
61101
github
62102
gitignore
63-
Gitlab
64103
grDevices
65104
grepl
66105
gsub
67-
Homebrew
68106
href
69107
http
70108
https
@@ -74,23 +112,17 @@ impl
74112
init
75113
io
76114
isAvailable
77-
issuehunt
78-
IssueHunt
79115
isTRUE
116+
issuehunt
80117
jpeg
81118
json
82-
KernSmooth
83119
knitr
84120
ko
85-
Ko
86121
lang
87122
lapply
88-
LF
89123
lgpl
90124
liberapay
91-
Liberapay
92125
licensors
93-
Lifecycle
94126
lintr
95127
loadCache
96128
lorenz
@@ -100,7 +132,6 @@ macOS
100132
magrittr
101133
maxkb
102134
md
103-
MERCHANTABILITY
104135
mgcv
105136
miniconda
106137
mis
@@ -119,13 +150,11 @@ num
119150
oneliner
120151
os
121152
otechie
122-
Otechie
123153
overscope
124154
packageVersion
125155
params
126156
parsable
127157
patreon
128-
Patreon
129158
pkgapi
130159
pkgdown
131160
pkgload
@@ -137,91 +166,63 @@ precommithooks
137166
proj
138167
purrr
139168
py
140-
Rbuildignore
169+
rR
141170
rc
142-
Rdata
143-
RData
144171
rds
145-
Rds
146172
readLines
147173
readme
148174
recognised
149175
relicensing
150176
renv
151-
Renviron
152177
repo
153178
repos
154-
Resubmission
155179
reticulate
156-
Rhistory
157180
rlang
158181
rmarkdown
159182
rmd
160183
rnw
161-
Rnw
162184
roclet
163185
roclets
164186
ropenscilabs
165187
roxygen
166188
roxygenise
167189
roxygenize
168-
RoxygenNote
169190
rpart
170-
Rprofile
171-
Rproj
172191
rprojroot
173-
rR
174-
Rr
175-
Rscript
176-
RSMP
177192
rstudio
178-
RStudio
179193
rstudioapi
180194
saveCache
181195
seealso
182196
sep
183197
setdiff
184-
SHA
185198
stderr
186199
stdout
187200
sterr
188201
stopifnot
189202
styler
190203
sublicenses
191-
Sublicensing
192-
Sys
193-
SystemRequirements
194204
tcltk
195205
tempfile
196206
testthat
197207
tibble
198208
tidelift
199-
Tidelift
200209
tidyverse
201210
toolchain
202211
trailingOnly
203212
travis
204213
tryCatch
205214
ubuntu
206-
UCRT
207215
uninitialised
208-
Uninstallation
209216
unlist
210217
unname
211-
Unstaged
212-
Upvote
213218
usethis
214219
usr
215-
VignetteBuilder
216220
walthert
217-
Walthert
218221
wd
219-
WIPO
220222
withr
221223
wordlist
222224
writeLines
223225
www
224226
yaml
225227
yihui
226228
yml
227-
Za

inst/hooks/exported/spell-check.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ spelling_errors <- spelling::spell_check_files(
3434
if (nrow(spelling_errors) > 0) {
3535
cat("The following spelling errors were found:\n")
3636
print(spelling_errors)
37-
ignore <- sort(unique(c(ignore, spelling_errors$word)))
38-
ignore <- ignore[ignore != ""] # drop blanks if any
37+
ignore_df <- data.frame(
38+
original = unique(c(ignore, spelling_errors$word))
39+
)
40+
ignore_df$lower <- tolower(ignore_df$original)
41+
ignore_df <- ignore_df[order(ignore_df$lower), ]
42+
ignore <- ignore_df$original[ignore_df$lower != ""] # drop blanks if any
3943
writeLines(ignore, path_wordlist)
4044
cat(
4145
"All spelling errors found were copied to inst/WORDLIST assuming they were",

0 commit comments

Comments
 (0)