From 7b59d8fa0f2886e77bb56672e8fada013e193ee2 Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Thu, 18 Jul 2024 10:16:57 -0500 Subject: [PATCH] don't try to automatically install missing packages by default when the LaTeX distribution is not TinyTeX --- DESCRIPTION | 2 +- R/tlmgr.R | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index af9c8b0b4..5cb429ef2 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: tinytex Type: Package Title: Helper Functions to Install and Maintain TeX Live, and Compile LaTeX Documents -Version: 0.51.1 +Version: 0.51.2 Authors@R: c( person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person(given = "Posit Software, PBC", role = c("cph", "fnd")), diff --git a/R/tlmgr.R b/R/tlmgr.R index eb6366efe..2bdb5cae8 100644 --- a/R/tlmgr.R +++ b/R/tlmgr.R @@ -142,7 +142,7 @@ need_add_path = function() { is_writable = function(p) file.access(p, 2) == 0 -tlmgr_writable = function() is_writable(Sys.which('tlmgr')) +tlmgr_writable = function() is_tinytex() && is_writable(Sys.which('tlmgr')) #' Check if certain LaTeX packages are installed #'