Skip to content

Commit

Permalink
fix rstudio#408: correct the bundle name in case of typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Apr 4, 2023
1 parent 976de8c commit 24b5848
Show file tree
Hide file tree
Showing 2 changed files with 6 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.44.1
Version: 0.44.2
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(given = "Posit Software, PBC", role = c("cph", "fnd")),
Expand Down
5 changes: 5 additions & 0 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ install_tinytex = function(
not_ctan = repository != 'ctan'
https = grepl('^https://', repository)

if (!grepl('TinyTeX', bundle)) message(
"The bundle name '", bundle, "' has been automatically corrected to '",
bundle <- gsub('tinytex', 'TinyTeX', bundle, ignore.case = TRUE), "'."
)

owd = setwd(tempdir()); on.exit(setwd(owd), add = TRUE)

if ((texinput <- Sys.getenv('TEXINPUT')) != '') message(
Expand Down

0 comments on commit 24b5848

Please sign in to comment.