Skip to content

Commit

Permalink
a workaround for calling executables with names longer than 8 charact…
Browse files Browse the repository at this point in the history
…ers, including fmtutil and updmap (#427 (comment))
  • Loading branch information
yihui committed Nov 12, 2023
1 parent 3495cb8 commit 0342da2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: tinytex
Type: Package
Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents
Version: 0.48.2
Version: 0.48.3
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(given = "Posit Software, PBC", role = c("cph", "fnd")),
Expand Down
4 changes: 2 additions & 2 deletions R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -671,12 +671,12 @@ texhash = function() {

updmap = function(usermode = FALSE) {
tweak_path()
system2(if (usermode) 'updmap-user' else 'updmap-sys')
system2('updmap', if (usermode) '--user' else '--sys')
}

fmtutil = function(usermode = FALSE, ...) {
tweak_path()
system2(if (usermode) 'fmtutil-user' else 'fmtutil-sys', '--all', ...)
system2('fmtutil', c(if (usermode) '--user' else '--sys', '--all'), ...)
}

fc_cache = function(args = c('-v', '-r')) {
Expand Down

0 comments on commit 0342da2

Please sign in to comment.