Skip to content

Commit

Permalink
close rstudio#434: add a global option tinytex.tlmgr_update to make…
Browse files Browse the repository at this point in the history
… it possible to disable the automatic `tlmgr update --self --all` call
  • Loading branch information
yihui committed Jan 23, 2024
1 parent 48d0843 commit 0bab743
Show file tree
Hide file tree
Showing 2 changed files with 2 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.49
Version: 0.49.1
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
2 changes: 1 addition & 1 deletion R/tlmgr.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ tlmgr_install = function(pkgs = character(), usermode = FALSE, path = !usermode
update_pkgs = function(...) tlmgr_update(..., usermode = usermode)

# if any packages have been installed, update packages first
if (any(check_installed(pkgs))) update_pkgs()
if (getOption('tinytex.tlmgr_update', TRUE) && any(check_installed(pkgs))) update_pkgs()

res = tlmgr(c('install', pkgs), usermode, ...)
if (res != 0 || any(!check_installed(pkgs))) {
Expand Down

0 comments on commit 0bab743

Please sign in to comment.