Replies: 2 comments 2 replies
-
Hi @ericvmai, Some R and Python objects has different representation depending of the final format that you are producing. Unfortunately, even the objects that has different representation might produce the "wrong" output given a couple of different reasons. In my documents, I'm using the follow approach for images:
This allows me to hand craft the correct settings for a PNG/PDF to be used when creating the PDF and for the HTML to be used when creating the HTML. I need to have
at the document YAML header! |
Beta Was this translation helpful? Give feedback.
-
This type of issue should only happens if you have HTML only content in your document. In that case, they should either be ignored, or included somehow. Leaflet Maps or other HTML widgets should be handled directly by knitr by taking a screenshort of the map or other HTML visualisation. So @ericvmai Can you think of any HTML only output you may have in your project ? Conditional solution suggested by @rgaiacs is an option for such content if the tool used does not handle it (example of kableExtra used with Bootstrap styling - this would output HTML and could not be included in PDF, where LaTeX tables are needed) So overall, which files is throwing the issue, and what type of content does this file have ? That will help you know how to continue your conversion |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to render my Quarto project to both html and pdf.
My colleague has shown that a leaflet map will render to pdf without issue here (https://github.com/knopfjt/sandbox/blob/main/quarto-test/docs/Quarto-Test.pdf) although the leaflet map's image is messed up.
But when I try to render my Quarto project located here (https://github.com/hdadvisors/chesterfield-market-analysis/tree/quarto-transition), I get the following error:
Anyone have any solutions here?
Beta Was this translation helpful? Give feedback.
All reactions