Skip to content

Commit b395cc4

Browse files
committed
add the ... argument to kpsewhich() because sometimes we may want to get the file path in the returned value
1 parent 8461d31 commit b395cc4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/latex.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ refresh_all = function(...) {
692692
}
693693

694694
# look up files in the Kpathsea library, e.g., kpsewhich('Sweave.sty')
695-
kpsewhich = function(filename, options = character()) {
695+
kpsewhich = function(filename, options = character(), ...) {
696696
tweak_path()
697-
system2('kpsewhich', c(options, shQuote(filename)))
697+
system2('kpsewhich', c(options, shQuote(filename)), ...)
698698
}

0 commit comments

Comments
 (0)