Authentication
Get Started
Custom Branding
Social Sign In
Hosting
Get Started
Custom Domains
Database Connections
Rmarkdown
API


Polished Hosting

beta

Rmarkdown


Shiny apps often generate pdf documents using Rmarkdown. To generate Rmarkdown pdf documents on Polished Hosting, set the "tlmgr" argument of polished::deploy_app().

Setting "tlmgr" to TRUE will install only the essentials to generate a PDF (i.e. TeX Live and a few of the most common LaTeX packages). Simply setting "tlmgr" to TRUE is quick and easy, but, if your PDF depends on many LaTeX packages, PDF report generation will be slow. It's slow because the LaTeX packages are installed immediately before the report is first generated, so the first time a user generates a report, they will have to wait for the the LaTeX package installation to complete. For optimal performance set "tlmgr" to a character vector of all LaTeX packages used in the generation of your PDF report. All LaTeX packages passed to the "tlmgr" argument will be installed during the deployment process, so your users will not have to wait on any LaTeX package installations while generating their reports.

To make sure you pre install all your LaTeX package dependencies, do the following:
  1. Deploy your app to Polished Hosting
  2. Generate a pdf report
  3. Check your logs on https://dashboard.polished.tech for any LaTeX package installations
  4. Pass all installed packages to the "tlmgr" argument
  5. Redeploy to Polished Hosting
  6. Enjoy speedy pdf reports







Polished Hosting

beta

Rmarkdown


Shiny apps often generate pdf documents using Rmarkdown. To generate Rmarkdown pdf documents on Polished Hosting, set the "tlmgr" argument of polished::deploy_app().

Setting "tlmgr" to TRUE will install only the essentials to generate a PDF (i.e. TeX Live and a few of the most common LaTeX packages). Simply setting "tlmgr" to TRUE is quick and easy, but, if your PDF depends on many LaTeX packages, PDF report generation will be slow. It's slow because the LaTeX packages are installed immediately before the report is first generated, so the first time a user generates a report, they will have to wait for the the LaTeX package installation to complete. For optimal performance set "tlmgr" to a character vector of all LaTeX packages used in the generation of your PDF report. All LaTeX packages passed to the "tlmgr" argument will be installed during the deployment process, so your users will not have to wait on any LaTeX package installations while generating their reports.

To make sure you pre install all your LaTeX package dependencies, do the following:
  1. Deploy your app to Polished Hosting
  2. Generate a pdf report
  3. Check your logs on https://dashboard.polished.tech for any LaTeX package installations
  4. Pass all installed packages to the "tlmgr" argument
  5. Redeploy to Polished Hosting
  6. Enjoy speedy pdf reports