RStudio Connect texlive and latex

Hello,

Markdown content on RStudio Connect is throwing an error about not being able to find the texmf.cnf file in a variety of directories, see full error below. Running kpsewhich -a texmf.cnf locates it in /usr/local/texlive/2020/texmf-dist/web2c/texmf.cnf. The path to the texlive binary is also included in PATH as follows: echo $PATH
/usr/local/texlive/2020/bin/x86_64-linux:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin

Are we missing some additional settings perhaps?

! warning: kpathsea: configuration file texmf.cnf not found in these directories: /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c:/usr/share/texlive/../texmf-local/web2c:/usr/share/texlive:/usr/share/texlive/share/texmf-local/web2c:/usr/share/texlive/share/texmf-dist/web2c:/usr/share/texlive/share/texmf/web2c:/usr/share/texlive/texmf-local/web2c:/usr/share/texlive/texmf-dist/web2c:/usr/share/texlive/texmf/web2c.

Hi Jason,

Thank you for filing a ticket with support regarding this item and mentioning the community post here. We're glad you were able to resolve by configuring the PATH on RStudio Connect. The following article describes this process: https://support.rstudio.com/hc/en-us/articles/360016606613-Environment-variables-on-RStudio-Connect

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.