I'm running into an issue where my downloadHandler runs fine for both html and pdf outputs on my local server, and the html output works fine on my RStudio Connect Shiny app. But the PDF produces an error.
For reference here is my output, the params are unimportant I think but outputs include latex-friendly tables and ggplot based plots.
The problem is happening when trying to convert the LaTeX file into a PDF because the floatrow LaTeX package is missing. Chances are the server running the app is also missing other packages.
I'm not familiar with RStudio Connect. Hopefully somebody else or an RStudio rep can help with that.
Hi nwerth, thanks for the reply. On my local machine the PDF outputs fine. I imagine it has something to do with the available packages on the Connect server or an issue with PATH environments.
I'm unsure if this is the proper channel to ask about Connect-specific questions.
RStudio Connect makes sure that the R packages needed to run your content are available but does not make similar accommodations for TeX/LaTeX packages.
You will need to work with your systems administrator to configure LaTeX on the system running RStudio Connect. The floatrow package is usually contained in a distribution-specific package. Ubuntu has the texlive-latex-extra package. I don't have the Red Hat package handy.