From 554bc0a1c7b6ec2abb2a5a050806798accf9af0b Mon Sep 17 00:00:00 2001 From: Yihui Xie Date: Tue, 1 May 2018 10:30:59 -0500 Subject: [PATCH] use texlive_root() as the default for the `dir` argument of install_tinytex() --- DESCRIPTION | 2 +- R/install.R | 8 ++++---- man/install_tinytex.Rd | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index eb442ef00..ca5ce47f5 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -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 = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")), person(family = "RStudio, Inc.", role = "cph"), diff --git a/R/install.R b/R/install.R index 4b096f2e8..04bc50a4e 100644 --- a/R/install.R +++ b/R/install.R @@ -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(...) { diff --git a/man/install_tinytex.Rd b/man/install_tinytex.Rd index 6bf4a6d05..68cef0b6b 100644 --- a/man/install_tinytex.Rd +++ b/man/install_tinytex.Rd @@ -10,7 +10,7 @@ install_tinytex(force = FALSE, dir = "auto", repository = "ctan", extra_packages uninstall_tinytex(force = FALSE, dir = texlive_root()) -reinstall_tinytex(packages = TRUE, ...) +reinstall_tinytex(packages = TRUE, dir = texlive_root(), ...) } \arguments{ \item{force}{Whether to force to install (override) or uninstall TinyTeX.} @@ -28,8 +28,8 @@ installed.} \item{packages}{Whether to reinstall all currently installed packages.} -\item{...}{Arguments to be passed to \code{install_tinytex()} (note that the -\code{extra_packages} argument will be set to \code{tl_pkgs()} if +\item{...}{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}).} } \description{