Skip to content

Commit 02363b7

Browse files
gogonzojeroen
authored andcommitted
adding .rd files to spell_check_files (#24)
1 parent f601104 commit 02363b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

R/check-files.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ spell_check_files <- function(path, ignore = character(), lang = "en_US"){
3232
spell_check_file_one <- function(path, dict){
3333
if(grepl("\\.r?md$",path, ignore.case = TRUE))
3434
return(spell_check_file_md(path, dict = dict))
35+
if(grepl("\\.rd$", path, ignore.case = TRUE))
36+
return(spell_check_file_rd(path, dict = dict))
3537
if(grepl("\\.(rnw|snw)$",path, ignore.case = TRUE))
3638
return(spell_check_file_knitr(path = path, format = "latex", dict = dict))
3739
if(grepl("\\.(tex)$",path, ignore.case = TRUE))

0 commit comments

Comments
 (0)