-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shiny App ! LaTeX Error: File `unicode-math.sty' not found #205
Comments
I also encountered the same problem. The local Rstudio can run. The above error occurs when deploying the www.shinyapps.io |
This is more of a ShinyApps.io issue. Please keep an eye on this thread on the support forum: https://community.rstudio.com/t/58425 Thanks! |
@yihui thanks for reaching out to someone on the shiny apps team for us. @zoushucai, in the thread that yihui shared, the issue was resolved by creating a template. I just tried it and it worked for me too! Still interested in seeing what Josh's response is. |
I got this error at some point too. Try leaving the template in the same
directory as your app.R and then put the below commands in your app.R
script to create a templates directory and move your templates.tex file
there upon deploying your app.
system('mkdir -p ~/.pandoc/templates')
file.copy("template.tex", "~/.pandoc/templates")
…On Fri, May 29, 2020 at 9:14 AM urwa ***@***.***> wrote:
I tried creating the template in the same directory where app.R and
report.Rmd were residing but I got the error Could not find data file
templates/template.tex. I moved it down to templates folder and still the
same error. What am I missing.
My folder heirarchy looks like this:
[image: image]
<https://user-images.githubusercontent.com/5441467/83263486-1d9c1e80-a1d8-11ea-8314-8b6e3595e561.png>
Any help would be appreciated.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#205 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJHKIK4TG5FHBGL72PA2POLRT6YJ3ANCNFSM4MS63SRQ>
.
|
Thanks for the above. This is very helpful. |
Hello All, I have provided the solution for this problem at stackoverflow link. Please follow: https://stackoverflow.com/questions/61374767/shiny-app-latex-error-file-unicode-math-sty-not-found/63301857#63301857 Regards, |
rmarkdown 1.15 + latex_engine: xelatex + shinyapps.io does work rmarkdown >1.15 + latex_engine: xelatex + shinyapps.io does not work (adding a template.tex or the .sty files currently does not work) Please check also rstudio/shinyapps-package-dependencies#230 |
rstudio/shinyapps-package-dependencies#230 has been fixed. Hopefully |
Hello everyone. Even though, according to the latest posts, this issue 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 When I have this version installed, everything works fine, even though I get the following warning when the application starts:
If, however, I try to install the latest version of
Any idea on how to solve this? Thank you for your help! |
Hi @nicocriscuolo, Thanks for reaching out. Please next time open a new issue when yours is not directly related. It is always better to open a new issue, and referenced another that commenting on a closed thread. I moved your comment into an issue and we can follow up there. thanks ! |
Hi,
I created a shiny app to generate a downloadable pdf report with knitr and rmarkdown.
I am able to generate the report in Rstudio, but when I attempt to do so from the app, I get this error:
You can find my code at github.com/jvanzalk/easy-engagement-reports
Here's the link to my post on stackoverflow: https://stackoverflow.com/questions/61374767/shiny-app-latex-error-file-unicode-math-sty-not-found
And, here is my session info:
Thanks for your help and let me know if there's anything else that I can provide.
By filing an issue to this repo, I promise that
xfun::session_info('tinytex')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('yihui/tinytex')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: