Replies: 2 comments 3 replies
-
I believe the following demo is of interest to you:
You don't necessarily have to use YAML file as you could set individual value from the command line. |
Beta Was this translation helpful? Give feedback.
3 replies
-
Sometimes looping at the command line level is simplest, e.g.
Wwhere |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
In our training for medical IT, we use ~30 workbooks which basically describe the same exercises in slightly different order. The exercises have different parameters per system, e. g. IP address, hostname, etc. Some of these parameters change on a yearly basis, e. g. a certain password.
My predecessor created ~30 single, separate MS Word documents for system1, system2, ... system30 with tables, tables-in-tables, and images in tables and out of tables and in between tables and I have now inherited that mess. I dearly want to convert that reproducibility hell into something which is more adjustable, handle-able and reproducible.
So far, I have tried
workbook-system1.yml
allows me to define the system's variables as well as the chapter structure. In this case, I would need ~30 project profiles, one per medical system..qmd
file withincludes
. Aworkbook-system1.qmd
, just like the Book, allows me to define the system's variables as well as the chapter structure, plus I'd end up with one.pdf
per.qmd
. In this case, I'd need ~30.qmd
files..yml
file with system settings for each system, e. g. IP address, plus one.qmd
file and/or includes which use{{< var/meta system1.ipaddress >}}
and{{< var/meta system2.ipaddress >}}
and so on. Here, I'd need one.yml
file and ~30.qmd
files.--metadata
command line argument. Allows me to be independent of one or many.yml
files, but takes ~30 calls with ~20 parameters each time.I have read #7805, #7814, #2021, but they seem unrelated to my case.
One thing which came to my mind is whether it is possible to loop over the variables of the
.yml
file and create one book project from one iteration. Or whether it is possible to tell quarto to render a book project only with a subset of variables from the.yml
.I guess the overarching question is: which is the best way to have the least amount of
.yml
files with the least amount of.qmd
files?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions