I have a shiny app that runs both locally and on Posit Connect, however the download button (which calls an .rmd file) only works locally on my machine and throws an error about a missing LaTeX file iftex.sty
on the posit connect instance:
2024/02/06 11:39:28 AM: This is pdfTeX, Version 3.1415926-2.5-1.40.14 (TeX Live 2013) 2024/02/06 11:39:28 AM: restricted \write18 enabled. 2024/02/06 11:39:28 AM: entering extended mode 2024/02/06 11:39:28 AM: ! LaTeX Error: File
iftex.sty' not found.
2024/02/06 11:39:28 AM:
2024/02/06 11:39:28 AM: ! Emergency stop.
2024/02/06 11:39:28 AM:
2024/02/06 11:39:28 AM:
2024/02/06 11:39:28 AM: Warning: Error in : LaTeX failed to compile built_report.tex. See The R package tinytex - Helper Functions to Manage TinyTeX, and Compile LaTeX Documents - Yihui Xie | 谢益辉 for debugging tips. See built_report.log for more info.`
If I manually add the iftex.sty
file from my local machine to the list of uploads to Posit Connect, the instance then throws an error about another tex file:
! Package ifluatex Error: Name clash, \ifluatex is already defined.
I have tried updating iftex through tlmgr, but the latest version is already installed. I have installed the latest version of R(4.3.2), R Studio (2023.12.1), and have updated all of my R packages. I am using the latest version of tinytex as my LaTeX interpreter and have followed the debugging guidelines outlined there.
R Studio output (works)
"C:/Program Files/RStudio/resources/app/bin/quarto/bin/tools/pandoc" +RTS -K512m -RTS report.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output built_report.tex --lua-filter "C:\Users\ryan\AppData\Local\Programs\R\R-4.3.2\library\rmarkdown\rmarkdown\lua\pagebreak.lua" --lua-filter "C:\Users\ryan\AppData\Local\Programs\R\R-4.3.2\library\rmarkdown\rmarkdown\lua\latex-div.lua" --embed-resources --standalone --highlight-style tango --pdf-engine pdflatex --variable graphics --variable "geometry:margin=1in"
Posit Connect output (fails)
/var/opt/rstudio-connect/ext/pandoc/2.16/pandoc +RTS -K512m -RTS report.knit.md --to latex --from markdown+autolink_bare_uris+tex_math_single_backslash --output built_report.tex --lua-filter /var/opt/rstudio-connect/mnt/packrat/4.3.2/v2/library/rmarkdown/db4aacef17092ba6fc1f2adf0d2cc803/rmarkdown/rmarkdown/lua/pagebreak.lua --lua-filter /var/opt/rstudio-connect/mnt/packrat/4.3.2/v2/library/rmarkdown/db4aacef17092ba6fc1f2adf0d2cc803/rmarkdown/rmarkdown/lua/latex-div.lua --self-contained --highlight-style tango --pdf-engine pdflatex --variable graphics --variable 'geometry:margin=1in'
Any suggestions would be most appreciated