Skip to content

Commit

Permalink
use tlmgr_version('list') in tinytex v0.46
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 25, 2023
1 parent 6decdfa commit 251c4e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Suggests:
testit,
tibble,
tikzDevice (>= 0.10),
tinytex,
tinytex (>= 0.46),
webshot,
rstudioapi,
svglite,
Expand Down
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -793,8 +793,7 @@ has_crop_tools = function(warn = TRUE) {
if (is_windows() && Sys.which('tlmgr') != '') {
# assuming users know what this env var means (rstudio/tinytex#391)
if (Sys.getenv('TEXLIVE_WINDOWS_EXTERNAL_GS') != '') return(TRUE)
# TODO: use tinytex::tlmgr_version('list')$year
year = as.integer(xfun::grep_sub('^TeX Live.* version (\\d+).*$', '\\1', tinytex::tlmgr_version())[1])
year = tinytex::tlmgr_version('list')$texlive
if (year < 2023 && warn) warning(
'TeX Live version too low. Please consider upgrading, e.g., via tinytex::reinstall_tinytex().'
)
Expand Down

0 comments on commit 251c4e5

Please sign in to comment.