# install_tinytex

0th

Percentile

##### Install/Uninstall TinyTeX

The function install_tinytex() downloads the installation script from https://github.com/yihui/tinytex according to the platform (Unix or Windows), and executes it to install TinyTeX (a custom LaTeX distribution based on TeX Live). The function uninstall_tinytex() removes TinyTeX; reinstall_tinytex() reinstalls TinyTeX as well as previously installed LaTeX packages by default; tinytex_root() returns the root directory of TinyTeX.

##### Usage
install_tinytex(
force = FALSE,
dir = "auto",
repository = "ctan",
extra_packages = NULL
)uninstall_tinytex(force = FALSE, dir = tinytex_root())reinstall_tinytex(packages = TRUE, dir = tinytex_root(), ...)tinytex_root()
##### Arguments
force

Whether to force to install (override) or uninstall TinyTeX.

dir

The directory to install or uninstall TinyTeX (should not exist unless force = TRUE).

repository

The CTAN repository to be used. By default, a fast mirror is automatically chosen. You can manually set one if the automatic mirror is not really fast enough, e.g., if you are in China, you may consider 'http://mirrors.tuna.tsinghua.edu.cn/CTAN/', or if you are in the midwest in the US, you may use 'https://mirror.las.iastate.edu/tex-archive/'. You can find the full list of mirrors at https://ctan.org/mirrors.

extra_packages

A character vector of extra LaTeX packages to be installed.

packages

Whether to reinstall all currently installed packages.

...

Other arguments to be passed to install_tinytex() (note that the extra_packages argument will be set to tl_pkgs() if packages = TRUE).

##### References

See the TinyTeX documentation (https://yihui.org/tinytex/) for the default installation directories on different platforms.

##### Aliases
• install_tinytex
• uninstall_tinytex
• reinstall_tinytex
• tinytex_root
Documentation reproduced from package tinytex, version 0.19, License: MIT + file LICENSE

### Community examples

Looks like there are no examples yet.