Control order of rendering #6944
Replies: 4 comments 5 replies
-
This could be possible with: But definitely not before. |
Beta Was this translation helpful? Give feedback.
-
A workaround is to list the files explicitly in |
Beta Was this translation helpful? Give feedback.
-
I am having this problem as well on GitHub Actions with the ubuntu-latest runner, despite:
The render runs correctly on my system (MacOS Sonoma 14.5). I need the notebooks to render in order, because they use jupyter storemagic to carry variables over from one to the next. As an example, when I run:
the actual run order is: Note that it doesn't even finish rendering a full directory before skipping around! |
Beta Was this translation helpful? Give feedback.
-
I have a similar use case to the OP. Using the Looking forward to #6518 |
Beta Was this translation helpful? Give feedback.
-
Description
I have a sequence of
qmd
files, where the code in some creates results (disk files) which are used by others. These files therefore need to be executed in a specific order byquarto render
to work properly.I tried to influence the order in which Quarto renders documents: Explicit listing of
contents:
instead ofauto
, puttingorder:
into the metadata of the files, putting numbers at the beginning of the documents' titles, putting numbers at the beginning of the documents' file names – and none of them work reliably. The order seems to be neither alphabetical by file name nor alphabetical by title; my guess is thatquarto render
simply processes files in the order they are in the directory (ls -U
).My request is: Please provide a way to control the rendering order of
qmd
files. Optimally that would not depend on filenames or titles, but e.g. on metadata likeorder
, but alphabetical file name order would be okay, too.Note that this is similar to but different from #3568; I'd be happy if the rendering order would be identical to the order of appearance. In order to accomodate both wishes, maybe a new metadata field
execution-order:
would be needed.I'd also be interested in a short-term workaround. Any tips?
Beta Was this translation helpful? Give feedback.
All reactions