Skip to content

Commit

Permalink
let fc_cache() also run on the TinyTeX root dir
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 15, 2022
1 parent 3912010 commit 3d146ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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.40.1
Version: 0.40.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, PBC", role = "cph"),
Expand Down
4 changes: 3 additions & 1 deletion R/latex.R
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,9 @@ fmtutil = function(usermode = FALSE, ...) {

fc_cache = function(args = c('-v', '-r')) {
tweak_path()
system2('fc-cache', args)
# run fc-cache on default dirs, then on the TinyTeX root dir
for (i in unique(c('', tinytex_root(error = FALSE))))
system2('fc-cache', shQuote(c(args, if (i != '') i)))
}

# refresh/update/regenerate everything
Expand Down

0 comments on commit 3d146ac

Please sign in to comment.