Skip to content

Commit 74bde57

Browse files
committed
Add PDF support
1 parent 46cf627 commit 74bde57

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Imports:
2121
knitr,
2222
roxygen2,
2323
Rcpp
24+
Suggests: pdftools
2425
Roxygen: list(markdown = TRUE)
2526
RoxygenNote: 6.0.1
2627
LinkingTo:

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
1.1
2+
- Add support for pdf files via pdftools
3+
4+
1.0
5+
- Initial release

R/check-files.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ spell_check_file_one <- function(path, dict){
3131
return(spell_check_file_plain(path = path, format = "html", dict = dict))
3232
if(grepl("\\.(xml)$",path, ignore.case = TRUE))
3333
return(spell_check_file_plain(path = path, format = "xml", dict = dict))
34+
if(grepl("\\.(pdf)$",path, ignore.case = TRUE))
35+
return(spell_check_file_pdf(path = path, format = "text", dict = dict))
3436
return(spell_check_file_plain(path = path, format = "text", dict = dict))
3537
}
3638

0 commit comments

Comments
 (0)