Skip to content

Commit

Permalink
fix #181: don't run tlmgr path add if /usr/local/bin/tlmgr doesn't …
Browse files Browse the repository at this point in the history
…exist, which is possible when TinyTeX is installed with the --no-path option, and no symlinks will be created to /usr/local/bin
  • Loading branch information
yihui committed Mar 3, 2020
1 parent 6bf9c37 commit c392b62
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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.20.1
Version: 0.20.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, PBC", role = "cph"),
Expand Down
3 changes: 3 additions & 0 deletions R/tlmgr.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ tlmgr_install = function(pkgs = character(), usermode = FALSE, path = !usermode
}
if (Sys.which('gs') == '') warning('GhostScript is required for the epstopdf package.')
}
# only run `tlmgr path add` if the symlink for tlmgr exists under
# /usr/local/bin; it may not exist when TinyTeX is installed with --no-path
if (missing(path)) path = path && file.exists('/usr/local/bin/tlmgr')
if (path) tlmgr_path('add')
invisible(res)
}
Expand Down

0 comments on commit c392b62

Please sign in to comment.