rstudio / rstudio/tinytex

`xelatex` rendering issue on shinyapps.io

Open
#317 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
R
Stars
1.2k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Hello everyone. Even though, according to the latest posts, this issue (#205) seems to be solved on shinyapps.io, from my shiny app (deployed there) I am still not able to produce a PDF from an .Rmd file embed in the application if the version of the rmarkdown package is higher than 1.15 and the latex engine is xelatex.

When I have this version installed, everything works fine, even though I get the following warning when the application starts:

This version of bslib is designed to work with rmarkdown version 2.7 or higher

If, however, I try to install the latest version of rmarkdown my PDF report is not produced and I get the following LaTeX error:

! LaTeX Error: Missing \begin{document}.
Warning: Error in : LaTeX failed to compile /var/folders/f9/8lfgdj3d5s1dbzsbtscxg9w80000gp/T//RtmpWVpFWz/file10d19ca31140.tex. See https://yihui.org/tinytex/r/#debugging for debugging tips. See file10d19ca31140.log for more info. [No stack trace available]

Any idea on how to solve this? Thank you for your help!

Originally posted by @nicocriscuolo in https://github.com/yihui/tinytex/issues/205#issuecomment-864039152

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the PDF generation from an Rmd app on shinyapps.io with rmarkdown above 1.15 and the xelatex engine. Inspect the generated .tex file and its LaTeX log, using the reported “Missing \begin{document}” failure and issue #205 as context; done means the PDF renders successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
latex, r
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.