You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multiple pdf format fail with generated figures #8367
When you have multiple pdf formats in a Quarto document that contains figures (generated by R for example), the process cleans up those figures after rendering the first PDF and the second PDF fails to render.
The figures should be kept until all formats are rendered.
Actual behavior
The figures are deleted after the first PDF is rendered.
Your environment
IDE: RStudio Version 2023.12.0+369 (2023.12.0+369)
MacOS Sonoma 14.2.1
Quarto check output
Quarto 1.4.545
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.545
Path: /Applications/quarto/bin
There's a temporary workaround to this if you keep the intermediate markdown files around (see #8373 (comment)). This will work with Quarto 1.5.29 (and maybe earlier?):
I don't think this is an accident: when keep-md: true is set, the supporting files are kept. It is on purpose because in .md file, there will be linked to resources
Activity
cderv commentedon Feb 28, 2024
This is related to other issues linked to
We need to track input / output and intermediates totally to name them correctly and avoid overwrite
andrewheiss commentedon Apr 18, 2024
There's a temporary workaround to this if you keep the intermediate markdown files around (see #8373 (comment)). This will work with Quarto 1.5.29 (and maybe earlier?):
andrewheiss commentedon Apr 18, 2024
Though according to @cscheid it's likely an accident that it's working: #6705 (comment)
(but a happy accident that I'm (unwisely!) relying on!)
Nenuial commentedon Apr 22, 2024
Thanks for this!
It will, as long as this accident works, offer a workaround that allows me to avoid manual renders.
cderv commentedon Apr 23, 2024
I don't think this is an accident: when
keep-md: trueis set, the supporting files are kept. It is on purpose because in .md file, there will be linked to resourcesquarto-cli/src/command/render/cleanup.ts
Lines 48 to 55 in 1ec0115
So this works in this case, but you'll get leftovers at the end.
The "accident" is this example
Where compilation would work now, with no leftovers, but because we have an issue where
keep-md: trueis not really respected.This will all be handled better with #6518
Nenuial commentedon Apr 23, 2024
Ok, that good to know. Thanks for the explanation.
Looking forward to #6518 !!