A listing of files generated from a template #961
Replies: 3 comments 2 replies
-
|
Currently there is no way to parameterized individual It's correct that you can't dynamically generate the metadata (as we need to compute on it at various junctures before the It's definitely not safe to execute multiple quarto render invocations concurrently on the same As you've discovered the built-in project mechanism doesn't handle this all that well. I can definitely forsee us making improvements here but in the meantime "going meta" and dynamically generating the project as you are doing is the way to go. |
Beta Was this translation helpful? Give feedback.
-
|
I would also like to do this. Currently, I've been using a parameterized quarto template to generate reports. I pass the parameter to a quarto_render(input = "template.qmd", |
Beta Was this translation helpful? Give feedback.
-
|
I've produced a makefile-based solution to this. Briefly, every 'to-be-parametrised' qmd file has a partner quasi-yaml file (which contains multiple metadata fields and parameter sets, so e.g. I've put a repository at https://github.com/FrancisCrickInstitute/babs-pre-quarto if anyone's interested. It's working for me at least, and even if it doesn't exactly work as you need it, might offer some ideas. |
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.
-
Hi! I'm came back to playing with Quarto and the usecase of generating a website containing a collection of reports for subsets of some data. I've made a toy example at https://mbojan.github.io/try-quarto (the code is on the
website-carsbranch). There the data ismtcarsand the reports correspond to its rows (cars), but the general idea should be applicable to any subsettable R object (grouped data frame, a list of some model objects etc.). I'm exploring two features:qmdfile) with a data-generated content, but also metadata (title, description, etc.).I came up with a setup that has the report template in
whiskerformat, which is used in a pre-render script to populate foldercarswithqmdfiles for each car. Theseqmds are then rendered by Quarto normally.Some questions/observations:
qmdfile (and abandonwhisker) which is repeatedly rendered by Quarto but with different parameters/metadata? I think I tried executingquartoCLI by a pre-render script, but as the whole thing is a Quarto Project, it went astray and tried to render other files too.quarto render somefile.qmdin parallel within a Quarto Project or would they get in each others' way by writing to.quartofolder?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions