How do I to specify TinyTex root for users?

Thank you for your help, @cderv. With your notes and a conversation with my team, we were able to create a central location for users to access TinyTeX. Below is our solution, feel free to comment if there is a glaring issue:

# Install Perl Digest MD5 -------------------------------------------------

# The `tinytex` package needs this to install.

sudo yum install perl-Digest-MD5
# Install `tinytex` Package -----------------------------------------------

# The package contains useful functions for managing and debugging TinyTeX.

# install.packages("tinytex", repos = "https://cloud.r-project.org/")
# Install TinyTeX As Admin ------------------------------------------------

# According to #5 on the FAQ of TinyTeX (https://yihui.org/tinytex/faq/),

# a different set of commands must be used to make TinyTeX available to all

# users.  Below are the steps.

# Install the TinyTeX library to the admin user's account.

wget -qO- "https://yihui.org/tinytex/install-unx.sh" \
| sh -s - --admin --no-path

# Install the TinyTeX packages mentioned in the `R Markdown` terminal's output.

sudo ~/.TinyTeX/tlmgr install package1 package2

# Centralize TinyTeX

sudo cp ~/.TinyTeX /data/TinyTeX/.TinyTeX

# Once `.TinyTeX` is in the desired folder, its path can be added to the users' .bashrc file.

sudo /data/TinyTeX/.TinyTeX/bin/*/tlmgr path add
1 Like