The function copy_tinytex() copies the existing TinyTeX installation
to another directory (e.g., a portable device like a USB stick). The function
use_tinytex() runs tlmgr path add to add the copy of TinyTeX
in an existing folder to the PATH variable of the current system, so
that you can use utilities such as tlmgr and pdflatex,
etc.
Usage
copy_tinytex(
from = tinytex_root(),
to = select_dir("Select Destination Directory"),
move = FALSE
)
use_tinytex(from = select_dir("Select TinyTeX Directory"))Arguments
- from
The root directory of the TinyTeX installation. For
copy_tinytex(), the default valuetinytex_root()should be a reasonable guess if you installed TinyTeX viainstall_tinytex(). Foruse_tinytex(), iffromis not provided, a dialog for choosing the directory interactively will pop up.- to
The destination directory where you want to make a copy of TinyTeX. Like
frominuse_tinytex(), a dialog will pop up iftois not provided incopy_tinytex().- move
Whether to use the new copy and delete the original copy of TinyTeX after copying it.