Skip to content

Commit

Permalink
use texlive_root() as the default for the dir argument of install_t…
Browse files Browse the repository at this point in the history
…inytex()
  • Loading branch information
yihui committed May 1, 2018
1 parent 82f1726 commit 554bc0a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
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.5.2
Version: 0.5.3
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person(family = "RStudio, Inc.", role = "cph"),
Expand Down
8 changes: 4 additions & 4 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -187,15 +187,15 @@ uninstall_tinytex = function(force = FALSE, dir = texlive_root()) {
}

#' @param packages Whether to reinstall all currently installed packages.
#' @param ... Arguments to be passed to \code{install_tinytex()} (note that the
#' \code{extra_packages} argument will be set to \code{tl_pkgs()} if
#' @param ... Other arguments to be passed to \code{install_tinytex()} (note
#' that the \code{extra_packages} argument will be set to \code{tl_pkgs()} if
#' \code{packages = TRUE}).
#' @rdname install_tinytex
#' @export
reinstall_tinytex = function(packages = TRUE, ...) {
reinstall_tinytex = function(packages = TRUE, dir = texlive_root(), ...) {
pkgs = if (packages) tl_pkgs()
uninstall_tinytex()
install_tinytex(extra_packages = pkgs, ...)
install_tinytex(extra_packages = pkgs, dir = dir, ...)
}

win_app_dir = function(...) {
Expand Down
6 changes: 3 additions & 3 deletions man/install_tinytex.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 554bc0a

Please sign in to comment.