Skip to content

Commit

Permalink
add the ... argument to kpsewhich() because sometimes we may want to …
Browse files Browse the repository at this point in the history
…get the file path in the returned value
  • Loading branch information
yihui committed Nov 20, 2023
1 parent 8461d31 commit b395cc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ refresh_all = function(...) {
}

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

0 comments on commit b395cc4

Please sign in to comment.