Not all latex packages are working when compiling the documents via shinyapps.io

20 views
Skip to first unread message

Wiktor Owczarz

unread,
May 6, 2016, 5:13:39 AM5/6/16
to ShinyApps Users
Hi all I am new here but I have question that is bothering me for long time already, it is related to creation of the PDF's via Shiny and knit r.

I build shiny app that is expected to create PDF report out of the user input data, through knitr. My application is working perfectly when run on my computer through R Studio but once I upload it to the shiny server (shinyapps.io) some latex packages that I use stop working and I do not understand why. Using eso-pic or hyperref result in erro

Running ' texi2div ' on ' pdf_shell.tex ' failed.

To solve this problem I tried to use
 xelatex compiler when compiling the PDF but it did not solve all of my problems. My problem is mainly related to the hyperref package which is functioning well when run through the R Studio but crash or covers text when run through shiny server. Below you will find pictures visualizing my problem with hyperref (one is compiled through R Studio (working well) and the "broken" via deployed app on shinyapps.io).
Does anyone know how I could compile the PDF using default compiler pdflatex, without getting the above mentioned error? Or you maybe have any pro tips that could solve the problems differently. Any input is much appreciated.

I compile documents via shiny simply with:

output$report = downloadHandler( filename = reactive({paste0(input$filename,'.pdf')}), content = function(file) { out = knit2pdf(input = 'pdf_shell.Rnw') file.rename(out, file) }, contentType = 'application/pdf' )

Thank you,

Wiktor



Capture.PNG
Captureq.PNG
Reply all
Reply to author
Forward
0 new messages