Skip to content

Commit

Permalink
add a message about TEXINPUT to prevent issues like #92
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Jan 11, 2019
1 parent d53fc1d commit 7a1c2c6
Show file tree
Hide file tree
Showing 2 changed files with 7 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.10
Version: 0.10.1
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, Inc.", role = "cph"),
Expand Down
6 changes: 6 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ install_tinytex = function(
}
https = grepl('^https://', repository)

if ((texinput <- Sys.getenv('TEXINPUT')) != '') message(
'Your environment variable TEXINPUT is "', texinput,
'". Normally you should not set this variable, because it may lead to issues like ',
'https://github.com/yihui/tinytex/issues/92.'
)

switch(
os,
'unix' = {
Expand Down

0 comments on commit 7a1c2c6

Please sign in to comment.