Install latex packages in rstudio cloud

Hello, I am using rstudio clloud to create rmarkdown pdf documents; I need to install spanish.ldf or other babelr complement spanis languaje; is it possible?

Many thanks

PD in my desktop rstudio version I use the tinytex package but when I installed in cloud version an try to install the spanish.ldf latex pakcage trhorug tlmgr command it show tihis message:

tlmgr install spanish.ldf
(running on Debian, switching to user mode!)
cannot setup TLPDB in /home/rstudio-user/texmf at /usr/bin/tlmgr line 5604.
tlmgr path add
(running on Debian, switching to user mode!)
tlmgr: action `path' not supported in usermode!

I got this instead:

rstudio-user@88c879295fe4:/cloud/project$ tlmgr --usermode init-usertree
(running on Debian, switching to user mode!)
tlmgr: action init-usertree returned a warning.
rstudio-user@88c879295fe4:/cloud/project$ tlmgr --usermode install spanish.ldf
(running on Debian, switching to user mode!)
/usr/bin/tlmgr: Initialization failed (in setup_unix_one):
/usr/bin/tlmgr: could not find a usable xzdec.
/usr/bin/tlmgr: Please install xzdec and try again.
tlmgr: Couldn't set up the necessary programs.
Installation of packages is not supported.
Please report to texlive@tug.org.

We will look into making xzdec available.

Hello y tried with poliglossia and bookdown and it runs ok and change the language!!!

xzdec is now installed in our base images.

In order to install additional TeX Live packages you need to do the following:

tlmgr init-usertree
tlmgr option repository ftp://tug.org/historic/systems/texlive/2015/tlnet-final
tlmgr --no-persistent-downloads install babel-spanish
1 Like