Skip to content

Commit

Permalink
fix #354: set the env var TEXLIVE_PREFER_OWN=1 before calling tlmgr t…
Browse files Browse the repository at this point in the history
…o use TeX Live's own curl instead of curl on PATH
  • Loading branch information
yihui committed Feb 18, 2022
1 parent 30253ce commit dd6b43d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/tlmgr.R
Expand Up @@ -46,6 +46,9 @@ tlmgr = function(args = character(), usermode = FALSE, ..., .quiet = FALSE) {
)
if (usermode) args = c('--usermode', args)
if (!.quiet) message(paste(c('tlmgr', args), collapse = ' '))
# use TeX Live's own binaries (e.g., curl): https://github.com/yihui/tinytex/issues/354
vars = xfun::set_envvar(c(TEXLIVE_PREFER_OWN = 1))
on.exit(xfun::set_envvar(vars), add = TRUE)
system2('tlmgr', args, ...)
}

Expand Down

0 comments on commit dd6b43d

Please sign in to comment.